home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1999-09-15 | 13.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Sep 15 12:35:18 1999, modified Wed Sep 15 12:35:18 1999, creator 'CWIE', type ASCII, 13140 bytes "MACAST_Visual.h" , at 0x33d4 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 4d 41 43 41 53 54 | 5f 56 69 73 75 61 6c 2e |..MACAST|_Visual.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 33 54 00 | 00 01 9a b4 05 7b 46 b4 |.....3T.|.....{F.|
|00000060| 05 7b 46 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.{F.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 42 12 00 00 |........|....B...|
|00000080| 2f 2a 0d 09 56 69 73 75 | 61 6c 20 50 6c 75 67 2d |/*..Visu|al Plug-|
|00000090| 69 6e 20 41 50 49 0d 09 | a9 31 39 39 39 2c 20 40 |in API..|.1999, @|
|000000a0| 73 6f 66 74 0d 09 0d 09 | 44 65 73 63 72 69 70 74 |soft....|Descript|
|000000b0| 69 6f 6e 3a 09 54 68 65 | 20 70 6c 75 67 69 6e 20 |ion:.The| plugin |
|000000c0| 41 50 49 20 66 6f 72 20 | 4d 41 43 41 53 54 20 76 |API for |MACAST v|
|000000d0| 69 73 75 61 6c 20 70 6c | 75 67 69 6e 73 20 28 77 |isual pl|ugins (w|
|000000e0| 69 6e 64 6f 77 65 64 0d | 09 09 09 09 09 61 6e 64 |indowed.|.....and|
|000000f0| 20 66 75 6c 6c 2d 73 63 | 72 65 65 6e 29 2e 0d 09 | full-sc|reen)...|
|00000100| 56 65 72 73 69 6f 6e 3a | 09 09 31 2e 33 0d 09 52 |Version:|..1.3..R|
|00000110| 65 6c 65 61 73 65 64 3a | 09 09 38 2f 32 33 2f 39 |eleased:|..8/23/9|
|00000120| 39 0d 09 43 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |9..Compa|tibility|
|00000130| 3a 09 4d 41 43 41 53 54 | 20 31 2e 30 0d 09 56 65 |:.MACAST| 1.0..Ve|
|00000140| 72 73 69 6f 6e 20 68 69 | 73 74 6f 72 79 3a 0d 09 |rsion hi|story:..|
|00000150| 0d 09 20 44 61 74 65 09 | 57 68 6f 09 09 43 68 61 |.. Date.|Who..Cha|
|00000160| 6e 67 65 73 0d 09 2d 2d | 2d 2d 2d 2d 2b 2d 2d 2d |nges..--|----+---|
|00000170| 2d 2d 2d 2b 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |---+----|--------|
|00000180| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000190| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000001a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0d 09 30 38 32 33 |--------|--..0823|
|000001b0| 39 39 09 53 4b 41 09 09 | 41 64 64 65 64 20 56 69 |99.SKA..|Added Vi|
|000001c0| 73 4c 69 73 74 65 6e 2c | 20 61 6e 64 20 42 72 6f |sListen,| and Bro|
|000001d0| 61 64 63 61 73 74 20 63 | 61 6c 6c 62 61 63 6b 2e |adcast c|allback.|
|000001e0| 0d 09 30 37 31 31 39 39 | 09 53 4b 41 09 09 43 68 |..071199|.SKA..Ch|
|000001f0| 61 6e 67 65 64 20 61 20 | 66 65 77 20 63 61 6c 6c |anged a |few call|
|00000200| 62 61 63 6b 73 2c 20 63 | 6f 6d 6d 65 6e 74 65 64 |backs, c|ommented|
|00000210| 20 74 68 65 20 66 69 6c | 65 20 61 20 6c 69 74 74 | the fil|e a litt|
|00000220| 6c 65 0d 09 09 09 09 09 | 62 65 74 74 65 72 2e 0d |le......|better..|
|00000230| 09 30 37 30 38 39 39 09 | 53 4b 41 09 09 41 64 64 |.070899.|SKA..Add|
|00000240| 65 64 20 74 77 6f 20 6e | 65 77 20 68 6f 6f 6b 73 |ed two n|ew hooks|
|00000250| 20 66 6f 72 20 70 6c 75 | 67 69 6e 73 2e 20 0d 09 | for plu|gins. ..|
|00000260| 09 09 09 09 41 6c 6c 20 | 76 69 73 75 61 6c 20 70 |....All |visual p|
|00000270| 6c 75 67 69 6e 73 20 68 | 61 73 20 74 6f 20 62 65 |lugins h|as to be|
|00000280| 20 72 65 63 6f 6d 70 69 | 6c 65 64 2e 0d 09 30 36 | recompi|led...06|
|00000290| 31 39 39 39 09 53 4b 41 | 09 09 41 64 64 65 64 20 |1999.SKA|..Added |
|000002a0| 47 65 74 53 6f 75 6e 64 | 42 75 66 66 65 72 20 68 |GetSound|Buffer h|
|000002b0| 6f 6f 6b 20 66 6f 72 20 | 64 69 72 65 63 74 20 61 |ook for |direct a|
|000002c0| 63 63 65 73 73 20 74 6f | 20 73 6f 75 6e 64 0d 09 |ccess to| sound..|
|000002d0| 09 09 09 09 64 61 74 61 | 0d 09 30 35 30 32 39 39 |....data|..050299|
|000002e0| 09 53 4b 41 09 09 49 6e | 69 74 69 61 6c 20 72 65 |.SKA..In|itial re|
|000002f0| 6c 65 61 73 65 0d 09 30 | 34 33 30 39 39 09 53 4b |lease..0|43099.SK|
|00000300| 41 09 09 53 74 61 72 74 | 65 64 20 74 68 65 20 77 |A..Start|ed the w|
|00000310| 6f 72 6b 0d 0d 09 53 4b | 41 20 3d 20 53 6c 61 76 |ork...SK|A = Slav|
|00000320| 61 20 4b 61 72 70 65 6e | 6b 6f 0d 2a 2f 0d 0d 23 |a Karpen|ko.*/..#|
|00000330| 70 72 61 67 6d 61 20 6f | 6e 63 65 0d 23 69 66 64 |pragma o|nce.#ifd|
|00000340| 65 66 20 5f 5f 63 70 6c | 75 73 70 6c 75 73 0d 65 |ef __cpl|usplus.e|
|00000350| 78 74 65 72 6e 20 22 43 | 22 20 7b 0d 23 65 6e 64 |xtern "C|" {.#end|
|00000360| 69 66 0d 0d 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |if../***|********|
|00000370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003a0| 2a 0d 09 09 09 09 09 45 | 4e 55 4d 53 20 41 4e 44 |*......E|NUMS AND|
|000003b0| 20 43 4f 4e 53 54 41 4e | 54 53 0d 2a 2a 2a 2a 2a | CONSTAN|TS.*****|
|000003c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000003f0| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 23 64 65 66 69 6e 65 |*******/|.#define|
|00000400| 20 56 50 5f 41 50 49 5f | 56 45 52 53 49 4f 4e 09 | VP_API_|VERSION.|
|00000410| 09 09 09 30 78 30 31 32 | 30 0d 23 64 65 66 69 6e |...0x012|0.#defin|
|00000420| 65 20 70 6c 75 67 56 69 | 73 75 61 6c 09 09 09 09 |e plugVi|sual....|
|00000430| 09 27 56 49 53 21 27 0d | 0d 2f 2f 20 46 6c 61 67 |.'VIS!'.|.// Flag|
|00000440| 73 20 66 6f 72 20 56 69 | 73 49 6e 66 6f 42 6c 6f |s for Vi|sInfoBlo|
|00000450| 63 6b 2e 66 6c 61 67 73 | 0d 65 6e 75 6d 20 7b 0d |ck.flags|.enum {.|
|00000460| 09 76 70 46 6c 61 67 53 | 74 61 72 74 4f 6e 4c 61 |.vpFlagS|tartOnLa|
|00000470| 75 6e 63 68 09 09 09 3d | 20 30 78 30 30 30 31 2c |unch...=| 0x0001,|
|00000480| 09 09 2f 2f 20 54 68 65 | 20 70 6c 75 67 69 6e 20 |..// The| plugin |
|00000490| 77 69 6c 6c 20 62 65 20 | 73 74 61 72 74 65 64 20 |will be |started |
|000004a0| 6f 6e 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 6c |on appli|cation l|
|000004b0| 61 75 6e 63 68 20 74 69 | 6d 65 0d 09 76 70 46 6c |aunch ti|me..vpFl|
|000004c0| 61 67 48 69 64 65 49 6e | 4d 65 6e 75 09 09 09 3d |agHideIn|Menu...=|
|000004d0| 20 30 78 30 30 30 32 2c | 09 09 2f 2f 20 54 68 65 | 0x0002,|..// The|
|000004e0| 20 70 6c 75 67 69 6e 20 | 77 69 6c 6c 20 6e 6f 74 | plugin |will not|
|000004f0| 20 62 65 20 73 68 6f 77 | 6e 20 69 6e 20 6d 65 6e | be show|n in men|
|00000500| 75 0d 09 0d 09 76 70 46 | 6c 61 67 53 74 61 72 74 |u....vpF|lagStart|
|00000510| 4f 6e 4c 61 75 6e 63 68 | 4d 61 73 6b 09 09 3d 20 |OnLaunch|Mask..= |
|00000520| 28 31 4c 20 3c 3c 20 30 | 29 2c 0d 09 76 70 46 6c |(1L << 0|),..vpFl|
|00000530| 61 67 48 69 64 65 49 6e | 4d 65 6e 75 4d 61 73 6b |agHideIn|MenuMask|
|00000540| 09 09 3d 20 28 31 4c 20 | 3c 3c 20 31 29 0d 7d 3b |..= (1L |<< 1).};|
|00000550| 0d 0d 2f 2f 20 75 73 65 | 66 75 6c 20 6d 61 63 72 |..// use|ful macr|
|00000560| 6f 73 20 74 6f 20 71 75 | 69 63 6b 6c 79 20 73 65 |os to qu|ickly se|
|00000570| 74 20 68 65 61 64 65 72 | 73 2f 66 6f 6f 74 65 72 |t header|s/footer|
|00000580| 73 20 6f 66 20 56 50 49 | 6e 66 6f 42 6c 6f 63 6b |s of VPI|nfoBlock|
|00000590| 0d 23 64 65 66 69 6e 65 | 20 56 50 5f 49 4e 46 4f |.#define| VP_INFO|
|000005a0| 42 4c 4f 43 4b 5f 48 45 | 41 44 45 52 28 61 2c 62 |BLOCK_HE|ADER(a,b|
|000005b0| 29 20 56 50 5f 41 50 49 | 5f 56 45 52 53 49 4f 4e |) VP_API|_VERSION|
|000005c0| 2c 20 70 6c 75 67 56 69 | 73 75 61 6c 2c 20 61 2c |, plugVi|sual, a,|
|000005d0| 20 62 2c 20 6e 69 6c 0d | 23 64 65 66 69 6e 65 20 | b, nil.|#define |
|000005e0| 56 50 5f 49 4e 46 4f 42 | 4c 4f 43 4b 5f 48 45 41 |VP_INFOB|LOCK_HEA|
|000005f0| 44 45 52 5f 57 49 54 48 | 5f 46 4c 41 47 53 28 61 |DER_WITH|_FLAGS(a|
|00000600| 2c 62 2c 63 29 20 56 50 | 5f 41 50 49 5f 56 45 52 |,b,c) VP|_API_VER|
|00000610| 53 49 4f 4e 2c 20 70 6c | 75 67 56 69 73 75 61 6c |SION, pl|ugVisual|
|00000620| 2c 20 61 2c 20 62 2c 20 | 63 0d 23 64 65 66 69 6e |, a, b, |c.#defin|
|00000630| 65 20 56 50 5f 49 4e 46 | 4f 42 4c 4f 43 4b 5f 46 |e VP_INF|OBLOCK_F|
|00000640| 4f 4f 54 45 52 09 6e 69 | 6c 2c 6e 69 6c 2c 6e 69 |OOTER.ni|l,nil,ni|
|00000650| 6c 2c 6e 69 6c 0d 0d 2f | 2a 2a 2a 2a 2a 2a 2a 2a |l,nil../|********|
|00000660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000680| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000690| 2a 2a 2a 2a 0d 09 09 09 | 09 09 45 52 52 4f 52 53 |****....|..ERRORS|
|000006a0| 20 26 20 52 45 54 55 52 | 4e 20 56 41 4c 55 45 53 | & RETUR|N VALUES|
|000006b0| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|000006c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000006e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 65 |********|*****/.e|
|000006f0| 6e 75 6d 20 7b 0d 09 2f | 2f 20 50 6c 75 67 69 6e |num {../|/ Plugin|
|00000700| 20 72 65 74 75 72 6e 20 | 63 6f 64 65 73 0d 09 65 | return |codes..e|
|00000710| 72 72 56 69 73 4e 6f 45 | 72 72 09 09 09 3d 20 6e |rrVisNoE|rr...= n|
|00000720| 6f 45 72 72 2c 0d 09 65 | 72 72 56 69 73 54 65 72 |oErr,..e|rrVisTer|
|00000730| 6d 69 6e 61 74 65 09 3d | 20 36 36 36 2c 09 09 09 |minate.=| 666,...|
|00000740| 2f 2f 20 74 65 72 6d 69 | 6e 61 74 65 20 74 68 65 |// termi|nate the|
|00000750| 20 70 6c 75 67 69 6e 0d | 09 65 72 72 56 69 73 4e | plugin.|.errVisN|
|00000760| 6f 4d 65 6d 6f 72 79 2c | 09 09 09 09 09 2f 2f 20 |oMemory,|.....// |
|00000770| 74 65 72 6d 69 6e 61 74 | 65 20 74 68 65 20 70 6c |terminat|e the pl|
|00000780| 75 67 69 6e 20 61 6e 64 | 20 64 69 73 70 6c 61 79 |ugin and| display|
|00000790| 20 6e 6f 20 6d 65 6d 6f | 72 79 20 61 6c 65 72 74 | no memo|ry alert|
|000007a0| 0d 09 0d 09 65 72 72 56 | 69 73 43 75 73 74 6f 6d |....errV|isCustom|
|000007b0| 09 09 09 09 09 2f 2f 20 | 4d 41 43 41 53 54 20 77 |.....// |MACAST w|
|000007c0| 69 6c 6c 20 63 61 6c 6c | 20 56 69 73 45 72 72 6f |ill call| VisErro|
|000007d0| 72 20 66 75 6e 63 74 69 | 6f 6e 20 61 6e 64 20 74 |r functi|on and t|
|000007e0| 65 72 6d 69 6e 61 74 65 | 20 79 6f 75 72 0d 09 09 |erminate| your...|
|000007f0| 09 09 09 09 09 09 09 2f | 2f 20 20 70 6c 75 67 69 |......./|/ plugi|
|00000800| 6e 20 69 66 20 79 6f 75 | 20 72 65 71 75 65 73 74 |n if you| request|
|00000810| 20 74 6f 2e 0d 7d 3b 0d | 0d 2f 2a 2a 2a 2a 2a 2a | to..};.|./******|
|00000820| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000830| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000840| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000850| 2a 2a 2a 2a 2a 2a 0d 09 | 09 09 09 09 46 55 4e 43 |******..|....FUNC|
|00000860| 54 49 4f 4e 20 44 45 46 | 49 4e 49 54 49 4f 4e 53 |TION DEF|INITIONS|
|00000870| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00000880| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000008a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 2f |********|*****/./|
|000008b0| 2f 20 43 61 6c 6c 65 64 | 20 77 68 65 6e 20 74 68 |/ Called| when th|
|000008c0| 65 20 70 6c 75 67 69 6e | 20 69 73 20 69 6e 69 74 |e plugin| is init|
|000008d0| 69 61 6c 69 7a 65 64 2e | 20 59 6f 75 20 67 65 74 |ialized.| You get|
|000008e0| 20 74 68 65 20 46 53 53 | 70 65 63 20 74 6f 20 74 | the FSS|pec to t|
|000008f0| 68 65 20 70 6c 75 67 69 | 6e 20 66 69 6c 65 0d 2f |he plugi|n file./|
|00000900| 2f 20 28 66 6f 72 20 6f | 70 65 6e 69 6e 67 20 72 |/ (for o|pening r|
|00000910| 65 73 66 6f 72 6b 20 69 | 66 20 79 6f 75 20 6e 65 |esfork i|f you ne|
|00000920| 65 64 20 74 6f 29 2e 20 | 59 6f 75 20 73 68 61 6c |ed to). |You shal|
|00000930| 6c 20 72 65 74 75 72 6e | 20 57 69 6e 64 6f 77 50 |l return| WindowP|
|00000940| 74 72 20 74 6f 20 79 6f | 75 72 20 70 6c 75 67 69 |tr to yo|ur plugi|
|00000950| 6e 20 28 69 66 20 79 6f | 75 20 63 72 65 61 74 65 |n (if yo|u create|
|00000960| 20 61 6e 79 29 2e 0d 65 | 78 74 65 72 6e 20 4f 53 | any)..e|xtern OS|
|00000970| 53 74 61 74 75 73 09 56 | 69 73 49 6e 69 74 69 61 |Status.V|isInitia|
|00000980| 6c 69 7a 65 28 46 53 53 | 70 65 63 50 74 72 20 69 |lize(FSS|pecPtr i|
|00000990| 6e 50 6c 75 67 69 6e 2c | 20 57 69 6e 64 6f 77 50 |nPlugin,| WindowP|
|000009a0| 74 72 2a 20 6f 75 74 57 | 69 6e 64 6f 77 2c 20 55 |tr* outW|indow, U|
|000009b0| 49 6e 74 33 32 2a 20 69 | 6f 52 65 66 63 6f 6e 29 |Int32* i|oRefcon)|
|000009c0| 3b 0d 0d 2f 2f 20 43 61 | 6c 6c 65 64 20 6f 6e 20 |;..// Ca|lled on |
|000009d0| 74 65 72 6d 69 6e 61 74 | 69 6f 6e 2e 20 50 6c 75 |terminat|ion. Plu|
|000009e0| 67 69 6e 20 73 68 6f 75 | 6c 64 20 64 69 73 70 6f |gin shou|ld dispo|
|000009f0| 73 65 20 61 6c 6c 20 62 | 75 66 66 65 72 73 2f 73 |se all b|uffers/s|
|00000a00| 74 72 75 63 74 75 72 65 | 73 20 69 74 20 68 61 64 |tructure|s it had|
|00000a10| 20 61 6e 64 20 70 72 65 | 70 61 72 65 0d 2f 2f 20 | and pre|pare.// |
|00000a20| 74 68 65 20 6d 69 6e 64 | 20 66 6f 72 20 65 74 68 |the mind| for eth|
|00000a30| 65 72 6e 69 74 79 2e 20 | 44 69 73 70 6f 73 69 6e |ernity. |Disposin|
|00000a40| 67 20 77 69 6e 64 6f 77 | 20 69 73 20 79 6f 75 72 |g window| is your|
|00000a50| 20 70 6c 75 67 69 6e 27 | 73 20 72 65 73 70 6f 6e | plugin'|s respon|
|00000a60| 73 69 62 69 6c 69 74 79 | 20 61 73 20 77 65 6c 6c |sibility| as well|
|00000a70| 2e 0d 65 78 74 65 72 6e | 20 4f 53 53 74 61 74 75 |..extern| OSStatu|
|00000a80| 73 09 56 69 73 54 65 72 | 6d 69 6e 61 74 65 28 57 |s.VisTer|minate(W|
|00000a90| 69 6e 64 6f 77 50 74 72 | 20 69 6e 57 69 6e 64 6f |indowPtr| inWindo|
|00000aa0| 77 2c 20 55 49 6e 74 33 | 32 2a 20 69 6f 52 65 66 |w, UInt3|2* ioRef|
|00000ab0| 63 6f 6e 29 3b 0d 0d 2f | 2f 20 43 61 6c 6c 65 64 |con);../|/ Called|
|00000ac0| 20 77 68 65 6e 65 76 65 | 72 20 4d 41 43 41 53 54 | wheneve|r MACAST|
|00000ad0| 20 68 61 73 20 73 6f 6d | 65 20 66 72 65 65 20 74 | has som|e free t|
|00000ae0| 69 6d 65 2e 20 49 66 20 | 79 6f 75 27 72 65 20 61 |ime. If |you're a|
|00000af0| 20 66 75 6c 6c 2d 73 63 | 72 65 65 6e 20 70 6c 75 | full-sc|reen plu|
|00000b00| 67 69 6e 2c 20 79 6f 75 | 20 67 65 74 20 74 68 69 |gin, you| get thi|
|00000b10| 73 20 65 76 65 6e 74 20 | 6d 6f 72 65 20 6f 66 74 |s event |more oft|
|00000b20| 65 6e 2e 0d 65 78 74 65 | 72 6e 20 4f 53 53 74 61 |en..exte|rn OSSta|
|00000b30| 74 75 73 09 56 69 73 49 | 64 6c 65 28 57 69 6e 64 |tus.VisI|dle(Wind|
|00000b40| 6f 77 50 74 72 20 69 6e | 57 69 6e 64 6f 77 2c 20 |owPtr in|Window, |
|00000b50| 55 49 6e 74 33 32 2a 20 | 69 6f 52 65 66 63 6f 6e |UInt32* |ioRefcon|
|00000b60| 29 3b 0d 0d 2f 2f 20 44 | 69 73 70 6c 61 79 20 41 |);..// D|isplay A|
|00000b70| 62 6f 75 74 20 62 6f 78 | 20 6f 72 20 64 6f 20 73 |bout box| or do s|
|00000b80| 6f 6d 65 20 61 62 6f 75 | 74 20 67 72 61 70 68 69 |ome abou|t graphi|
|00000b90| 63 20 69 6e 20 74 68 65 | 20 70 6c 75 67 69 6e 20 |c in the| plugin |
|00000ba0| 77 69 6e 64 6f 77 2e 0d | 65 78 74 65 72 6e 20 4f |window..|extern O|
|00000bb0| 53 53 74 61 74 75 73 09 | 56 69 73 41 62 6f 75 74 |SStatus.|VisAbout|
|00000bc0| 28 57 69 6e 64 6f 77 50 | 74 72 20 69 6e 57 69 6e |(WindowP|tr inWin|
|00000bd0| 64 6f 77 2c 20 55 49 6e | 74 33 32 2a 20 69 6f 52 |dow, UIn|t32* ioR|
|00000be0| 65 66 63 6f 6e 29 3b 0d | 0d 2f 2f 20 44 72 61 77 |efcon);.|.// Draw|
|00000bf0| 20 77 68 61 74 65 76 65 | 72 20 79 6f 75 20 77 61 | whateve|r you wa|
|00000c00| 6e 74 20 74 6f 2e 20 43 | 61 6c 6c 65 64 20 70 65 |nt to. C|alled pe|
|00000c10| 72 69 6f 64 69 63 61 6c | 6c 79 20 74 6f 20 65 6e |riodical|ly to en|
|00000c20| 73 75 72 65 20 73 74 65 | 61 64 79 20 65 66 66 65 |sure ste|ady effe|
|00000c30| 63 74 20 66 6c 6f 77 2e | 0d 65 78 74 65 72 6e 20 |ct flow.|.extern |
|00000c40| 4f 53 53 74 61 74 75 73 | 20 56 69 73 44 72 61 77 |OSStatus| VisDraw|
|00000c50| 28 57 69 6e 64 6f 77 50 | 74 72 20 69 6e 57 69 6e |(WindowP|tr inWin|
|00000c60| 64 6f 77 2c 20 55 49 6e | 74 33 32 2a 20 69 6f 52 |dow, UIn|t32* ioR|
|00000c70| 65 66 63 6f 6e 29 3b 0d | 0d 2f 2f 20 54 68 69 73 |efcon);.|.// This|
|00000c80| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 20 63 61 6c | functio|n is cal|
|00000c90| 6c 65 64 20 77 68 65 6e | 20 75 73 65 72 20 63 6c |led when| user cl|
|00000ca0| 69 63 6b 73 20 69 6e 20 | 77 69 6e 64 6f 77 20 74 |icks in |window t|
|00000cb0| 68 61 74 20 69 73 20 63 | 6f 6e 74 72 6f 6c 6c 65 |hat is c|ontrolle|
|00000cc0| 64 20 62 79 20 79 6f 75 | 72 20 70 6c 75 67 69 6e |d by you|r plugin|
|00000cd0| 2e 0d 2f 2f 20 59 6f 75 | 20 63 61 6e 20 64 6f 20 |..// You| can do |
|00000ce0| 77 68 61 74 20 79 6f 75 | 20 77 61 6e 74 20 77 69 |what you| want wi|
|00000cf0| 74 68 20 74 68 61 74 20 | 63 6c 69 63 6b 2e 0d 65 |th that |click..e|
|00000d00| 78 74 65 72 6e 20 4f 53 | 53 74 61 74 75 73 20 56 |xtern OS|Status V|
|00000d10| 69 73 43 6c 69 63 6b 28 | 57 69 6e 64 6f 77 50 74 |isClick(|WindowPt|
|00000d20| 72 20 69 6e 57 69 6e 64 | 6f 77 2c 20 50 6f 69 6e |r inWind|ow, Poin|
|00000d30| 74 20 69 6e 43 6c 69 63 | 6b 2c 20 55 49 6e 74 33 |t inClic|k, UInt3|
|00000d40| 32 2a 20 69 6f 52 65 66 | 63 6f 6e 29 3b 0d 0d 2f |2* ioRef|con);../|
|00000d50| 2f 20 54 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |/ This f|unction |
|00000d60| 69 73 20 63 61 6c 6c 65 | 64 20 77 68 65 6e 20 75 |is calle|d when u|
|00000d70| 73 65 72 20 70 72 65 73 | 73 65 73 20 61 20 6b 65 |ser pres|ses a ke|
|00000d80| 79 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 4d 41 43 |y. Note |that MAC|
|00000d90| 41 53 54 20 67 65 74 73 | 20 74 68 69 73 20 6b 65 |AST gets| this ke|
|00000da0| 79 20 61 73 20 77 65 6c | 6c 0d 2f 2f 20 61 73 20 |y as wel|l.// as |
|00000db0| 61 6c 6c 20 6f 74 68 65 | 72 20 76 69 73 75 61 6c |all othe|r visual|
|00000dc0| 20 70 6c 75 67 69 6e 73 | 2e 0d 65 78 74 65 72 6e | plugins|..extern|
|00000dd0| 20 4f 53 53 74 61 74 75 | 73 20 56 69 73 4b 65 79 | OSStatu|s VisKey|
|00000de0| 44 6f 77 6e 28 57 69 6e | 64 6f 77 50 74 72 20 69 |Down(Win|dowPtr i|
|00000df0| 6e 57 69 6e 64 6f 77 2c | 20 45 76 65 6e 74 52 65 |nWindow,| EventRe|
|00000e00| 63 6f 72 64 2a 20 69 6e | 45 76 65 6e 74 2c 20 55 |cord* in|Event, U|
|00000e10| 49 6e 74 33 32 2a 20 69 | 6f 52 65 66 63 6f 6e 29 |Int32* i|oRefcon)|
|00000e20| 3b 0d 0d 2f 2f 20 54 68 | 69 73 20 66 75 6e 63 74 |;..// Th|is funct|
|00000e30| 69 6f 6e 20 69 73 20 63 | 61 6c 6c 65 64 20 77 68 |ion is c|alled wh|
|00000e40| 65 6e 20 77 69 6e 64 6f | 77 2d 73 70 65 63 69 66 |en windo|w-specif|
|00000e50| 69 63 20 65 76 65 6e 74 | 20 69 73 20 70 6f 73 74 |ic event| is post|
|00000e60| 65 64 20 66 6f 72 20 79 | 6f 75 72 20 76 69 73 75 |ed for y|our visu|
|00000e70| 61 6c 20 70 6c 75 67 69 | 6e 2e 0d 2f 2f 20 49 66 |al plugi|n..// If|
|00000e80| 20 79 6f 75 20 68 61 76 | 65 20 74 68 69 73 20 73 | you hav|e this s|
|00000e90| 65 74 2c 20 69 74 20 63 | 61 6e 20 6f 76 65 72 72 |et, it c|an overr|
|00000ea0| 69 64 65 20 56 69 73 44 | 72 61 77 20 66 75 6e 63 |ide VisD|raw func|
|00000eb0| 74 69 6f 6e 2c 20 61 6e | 64 20 69 74 20 69 73 20 |tion, an|d it is |
|00000ec0| 63 61 6c 6c 65 64 20 77 | 68 65 6e 20 4d 41 43 41 |called w|hen MACA|
|00000ed0| 53 54 0d 2f 2f 20 77 61 | 6e 74 73 20 79 6f 75 72 |ST.// wa|nts your|
|00000ee0| 20 70 6c 75 67 69 6e 20 | 74 6f 20 72 65 64 72 61 | plugin |to redra|
|00000ef0| 77 2e 0d 65 78 74 65 72 | 6e 20 4f 53 53 74 61 74 |w..exter|n OSStat|
|00000f00| 75 73 20 56 69 73 4d 61 | 63 45 76 65 6e 74 28 57 |us VisMa|cEvent(W|
|00000f10| 69 6e 64 6f 77 50 74 72 | 20 69 6e 57 69 6e 64 6f |indowPtr| inWindo|
|00000f20| 77 2c 20 45 76 65 6e 74 | 52 65 63 6f 72 64 2a 20 |w, Event|Record* |
|00000f30| 69 6e 45 76 65 6e 74 2c | 20 55 49 6e 74 33 32 2a |inEvent,| UInt32*|
|00000f40| 20 69 6f 52 65 66 63 6f | 6e 29 3b 0d 0d 2f 2f 20 | ioRefco|n);..// |
|00000f50| 54 68 69 73 20 66 75 6e | 63 74 69 6f 6e 20 63 61 |This fun|ction ca|
|00000f60| 6c 6c 65 64 20 69 66 20 | 79 6f 75 20 72 65 74 75 |lled if |you retu|
|00000f70| 72 6e 20 65 72 72 56 69 | 73 43 75 73 74 6f 6d 2e |rn errVi|sCustom.|
|00000f80| 20 59 6f 75 20 73 68 6f | 75 6c 64 20 63 6f 70 79 | You sho|uld copy|
|00000f90| 20 74 68 65 20 65 72 72 | 6f 72 20 73 74 72 69 6e | the err|or strin|
|00000fa0| 67 0d 2f 2f 20 61 6e 64 | 20 65 72 72 4e 75 6d 20 |g.// and| errNum |
|00000fb0| 28 6f 70 74 69 6f 6e 61 | 6c 6c 79 29 20 61 6e 64 |(optiona|lly) and|
|00000fc0| 20 72 65 74 75 72 6e 20 | 77 68 65 74 68 65 72 20 | return |whether |
|00000fd0| 74 68 65 20 65 72 72 6f | 72 20 69 73 20 66 61 74 |the erro|r is fat|
|00000fe0| 61 6c 20 6f 72 20 6e 6f | 74 2e 20 49 66 20 74 68 |al or no|t. If th|
|00000ff0| 69 73 20 66 75 6e 63 74 | 69 6f 6e 0d 2f 2f 20 72 |is funct|ion.// r|
|00001000| 65 74 75 72 6e 73 20 74 | 72 75 65 2c 20 4d 41 43 |eturns t|rue, MAC|
|00001010| 41 53 54 20 74 65 72 6d | 69 6e 61 74 65 73 20 79 |AST term|inates y|
|00001020| 6f 75 72 20 70 6c 75 67 | 69 6e 2c 20 6f 74 68 65 |our plug|in, othe|
|00001030| 72 77 69 73 65 20 63 6f | 6e 74 69 6e 75 65 73 20 |rwise co|ntinues |
|00001040| 65 78 65 63 75 74 69 6f | 6e 2e 0d 65 78 74 65 72 |executio|n..exter|
|00001050| 6e 20 42 6f 6f 6c 65 61 | 6e 20 56 69 73 45 72 72 |n Boolea|n VisErr|
|00001060| 6f 72 28 53 74 72 69 6e | 67 50 74 72 20 6f 75 74 |or(Strin|gPtr out|
|00001070| 45 72 72 53 74 72 69 6e | 67 2c 20 4f 53 53 74 61 |ErrStrin|g, OSSta|
|00001080| 74 75 73 2a 20 6f 75 74 | 45 72 72 4e 75 6d 29 3b |tus* out|ErrNum);|
|00001090| 0d 0d 2f 2f 20 49 66 20 | 79 6f 75 20 64 65 66 69 |..// If |you defi|
|000010a0| 6e 65 20 74 68 69 73 20 | 66 75 6e 63 74 69 6f 6e |ne this |function|
|000010b0| 20 69 6e 20 79 6f 75 72 | 20 67 50 6c 75 67 49 6e | in your| gPlugIn|
|000010c0| 66 6f 2c 20 4d 41 43 41 | 53 54 20 77 69 6c 6c 20 |fo, MACA|ST will |
|000010d0| 61 64 64 20 61 20 63 6f | 72 72 65 73 70 6f 6e 64 |add a co|rrespond|
|000010e0| 69 6e 67 20 69 74 65 6d | 20 69 6e 74 6f 0d 2f 2f |ing item| into.//|
|000010f0| 20 27 53 65 74 74 69 6e | 67 73 27 20 73 75 62 6d | 'Settin|gs' subm|
|00001100| 65 6e 75 20 6f 66 20 70 | 6c 75 67 69 6e 73 20 6d |enu of p|lugins m|
|00001110| 65 6e 75 20 61 6e 64 20 | 77 69 6c 6c 20 63 61 6c |enu and |will cal|
|00001120| 6c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |l this f|unction |
|00001130| 77 68 65 6e 20 75 73 65 | 72 20 63 68 6f 6f 73 65 |when use|r choose|
|00001140| 73 20 69 74 2e 0d 2f 2f | 20 59 6f 75 20 63 61 6e |s it..//| You can|
|00001150| 20 64 69 73 70 6c 61 79 | 20 73 65 74 74 69 6e 67 | display| setting|
|00001160| 73 20 64 69 61 6c 6f 67 | 2c 20 61 6e 64 20 64 6f |s dialog|, and do|
|00001170| 20 77 68 61 74 65 76 65 | 72 20 79 6f 75 20 77 61 | whateve|r you wa|
|00001180| 6e 74 2e 0d 65 78 74 65 | 72 6e 20 4f 53 53 74 61 |nt..exte|rn OSSta|
|00001190| 74 75 73 20 56 69 73 53 | 65 74 74 69 6e 67 73 28 |tus VisS|ettings(|
|000011a0| 57 69 6e 64 6f 77 50 74 | 72 20 69 6e 57 69 6e 64 |WindowPt|r inWind|
|000011b0| 6f 77 2c 20 55 49 6e 74 | 33 32 2a 20 69 6f 52 65 |ow, UInt|32* ioRe|
|000011c0| 66 63 6f 6e 29 3b 0d 0d | 2f 2f 20 54 68 65 73 65 |fcon);..|// These|
|000011d0| 20 66 75 6e 63 74 69 6f | 6e 73 20 61 72 65 20 63 | functio|ns are c|
|000011e0| 61 6c 6c 65 64 20 77 68 | 65 6e 20 74 72 61 63 6b |alled wh|en track|
|000011f0| 20 69 6e 20 4d 41 43 41 | 53 54 20 69 73 20 73 74 | in MACA|ST is st|
|00001200| 61 72 74 65 64 20 6f 72 | 20 73 74 6f 70 70 65 64 |arted or| stopped|
|00001210| 2e 20 59 6f 75 20 63 61 | 6e 20 63 6c 65 61 72 20 |. You ca|n clear |
|00001220| 64 72 61 77 20 61 72 65 | 61 0d 2f 2f 20 65 74 63 |draw are|a.// etc|
|00001230| 20 68 65 72 65 2e 20 4e | 6f 74 65 20 74 68 61 74 | here. N|ote that|
|00001240| 20 79 6f 75 20 63 61 6e | 20 61 6c 73 6f 20 75 73 | you can| also us|
|00001250| 65 20 6d 61 2d 3e 47 65 | 74 53 74 61 74 75 73 20 |e ma->Ge|tStatus |
|00001260| 63 61 6c 6c 62 61 63 6b | 20 74 6f 20 67 65 74 20 |callback| to get |
|00001270| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 74 61 74 |the curr|ent stat|
|00001280| 75 73 2e 0d 65 78 74 65 | 72 6e 20 4f 53 53 74 61 |us..exte|rn OSSta|
|00001290| 74 75 73 20 56 69 73 54 | 72 61 63 6b 42 65 67 69 |tus VisT|rackBegi|
|000012a0| 6e 28 57 69 6e 64 6f 77 | 50 74 72 20 69 6e 57 69 |n(Window|Ptr inWi|
|000012b0| 6e 64 6f 77 2c 20 55 49 | 6e 74 33 32 2a 20 69 6f |ndow, UI|nt32* io|
|000012c0| 52 65 66 63 6f 6e 29 3b | 0d 65 78 74 65 72 6e 20 |Refcon);|.extern |
|000012d0| 4f 53 53 74 61 74 75 73 | 20 56 69 73 54 72 61 63 |OSStatus| VisTrac|
|000012e0| 6b 45 6e 64 28 57 69 6e | 64 6f 77 50 74 72 20 69 |kEnd(Win|dowPtr i|
|000012f0| 6e 57 69 6e 64 6f 77 2c | 20 55 49 6e 74 33 32 2a |nWindow,| UInt32*|
|00001300| 20 69 6f 52 65 66 63 6f | 6e 29 3b 0d 0d 65 78 74 | ioRefco|n);..ext|
|00001310| 65 72 6e 20 4f 53 53 74 | 61 74 75 73 20 56 69 73 |ern OSSt|atus Vis|
|00001320| 4c 69 73 74 65 6e 28 57 | 69 6e 64 6f 77 50 74 72 |Listen(W|indowPtr|
|00001330| 20 69 6e 57 69 6e 64 6f | 77 2c 20 53 49 6e 74 33 | inWindo|w, SInt3|
|00001340| 32 20 69 6e 4d 65 73 73 | 61 67 65 2c 20 76 6f 69 |2 inMess|age, voi|
|00001350| 64 2a 20 69 6e 44 61 74 | 61 2c 20 55 49 6e 74 33 |d* inDat|a, UInt3|
|00001360| 32 2a 20 69 6f 52 65 66 | 63 6f 6e 29 3b 0d 0d 2f |2* ioRef|con);../|
|00001370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 09 09 09 |********|****....|
|000013b0| 09 09 54 59 50 45 44 45 | 46 53 20 41 4e 44 20 53 |..TYPEDE|FS AND S|
|000013c0| 54 52 55 43 54 53 0d 2a | 2a 2a 2a 2a 2a 2a 2a 2a |TRUCTS.*|********|
|000013d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000013f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001400| 2a 2a 2a 2f 0d 2f 2f 20 | a5 50 6c 75 67 69 6e 20 |***/.// |.Plugin |
|00001410| 63 61 6c 6c 62 61 63 6b | 73 0d 74 79 70 65 64 65 |callback|s.typede|
|00001420| 66 20 4f 53 53 74 61 74 | 75 73 09 28 2a 76 69 73 |f OSStat|us.(*vis|
|00001430| 49 6e 69 74 50 72 6f 63 | 50 74 72 29 28 46 53 53 |InitProc|Ptr)(FSS|
|00001440| 70 65 63 50 74 72 2c 20 | 57 69 6e 64 6f 77 50 74 |pecPtr, |WindowPt|
|00001450| 72 2a 2c 20 55 49 6e 74 | 33 32 2a 29 3b 0d 74 79 |r*, UInt|32*);.ty|
|00001460| 70 65 64 65 66 20 4f 53 | 53 74 61 74 75 73 09 28 |pedef OS|Status.(|
|00001470| 2a 76 69 73 47 65 6e 65 | 72 69 63 50 72 6f 63 50 |*visGene|ricProcP|
|00001480| 74 72 29 28 57 69 6e 64 | 6f 77 50 74 72 2c 20 55 |tr)(Wind|owPtr, U|
|00001490| 49 6e 74 33 32 2a 29 3b | 0d 74 79 70 65 64 65 66 |Int32*);|.typedef|
|000014a0| 20 4f 53 53 74 61 74 75 | 73 09 28 2a 76 69 73 43 | OSStatu|s.(*visC|
|000014b0| 6c 69 63 6b 50 72 6f 63 | 50 74 72 29 28 57 69 6e |lickProc|Ptr)(Win|
|000014c0| 64 6f 77 50 74 72 2c 20 | 50 6f 69 6e 74 2c 20 55 |dowPtr, |Point, U|
|000014d0| 49 6e 74 33 32 2a 29 3b | 0d 74 79 70 65 64 65 66 |Int32*);|.typedef|
|000014e0| 20 4f 53 53 74 61 74 75 | 73 09 28 2a 76 69 73 45 | OSStatu|s.(*visE|
|000014f0| 76 65 6e 74 50 72 6f 63 | 50 74 72 29 28 57 69 6e |ventProc|Ptr)(Win|
|00001500| 64 6f 77 50 74 72 2c 20 | 45 76 65 6e 74 52 65 63 |dowPtr, |EventRec|
|00001510| 6f 72 64 2a 2c 20 55 49 | 6e 74 33 32 2a 29 3b 0d |ord*, UI|nt32*);.|
|00001520| 74 79 70 65 64 65 66 20 | 42 6f 6f 6c 65 61 6e 20 |typedef |Boolean |
|00001530| 09 28 2a 76 69 73 45 72 | 72 6f 72 50 72 6f 63 50 |.(*visEr|rorProcP|
|00001540| 74 72 29 28 53 74 72 69 | 6e 67 50 74 72 2c 20 4f |tr)(Stri|ngPtr, O|
|00001550| 53 53 74 61 74 75 73 2a | 29 3b 0d 74 79 70 65 64 |SStatus*|);.typed|
|00001560| 65 66 20 4f 53 53 74 61 | 74 75 73 09 28 2a 76 69 |ef OSSta|tus.(*vi|
|00001570| 73 4c 69 73 74 65 6e 50 | 72 6f 63 50 74 72 29 28 |sListenP|rocPtr)(|
|00001580| 57 69 6e 64 6f 77 50 74 | 72 2c 20 53 49 6e 74 33 |WindowPt|r, SInt3|
|00001590| 32 2c 20 76 6f 69 64 2a | 2c 20 55 49 6e 74 33 32 |2, void*|, UInt32|
|000015a0| 2a 29 3b 0d 0d 2f 2f 20 | a5 4d 41 43 41 53 54 20 |*);..// |.MACAST |
|000015b0| 43 61 6c 6c 62 61 63 6b | 73 0d 2f 2f 20 20 59 6f |Callback|s.// Yo|
|000015c0| 75 20 63 61 6e 20 63 61 | 6c 6c 20 74 68 65 73 65 |u can ca|ll these|
|000015d0| 20 61 6e 79 74 69 6d 65 | 20 79 6f 75 20 77 61 6e | anytime| you wan|
|000015e0| 74 2e 0d 0d 74 79 70 65 | 64 65 66 20 76 6f 69 64 |t...type|def void|
|000015f0| 09 09 28 2a 6d 61 56 69 | 73 47 65 74 56 61 6c 75 |..(*maVi|sGetValu|
|00001600| 65 73 41 72 72 61 79 29 | 28 55 49 6e 74 38 2a 2a |esArray)|(UInt8**|
|00001610| 20 6f 75 74 41 72 72 61 | 79 2c 20 55 49 6e 74 31 | outArra|y, UInt1|
|00001620| 36 2a 20 6f 75 74 41 72 | 72 61 79 53 69 7a 65 29 |6* outAr|raySize)|
|00001630| 3b 0d 2f 2f 20 47 65 74 | 20 61 6e 20 61 72 72 61 |;.// Get| an arra|
|00001640| 79 20 6f 66 20 70 72 65 | 2d 63 6f 6d 70 75 74 65 |y of pre|-compute|
|00001650| 64 20 76 61 6c 75 65 73 | 20 66 6f 72 20 66 72 65 |d values| for fre|
|00001660| 71 75 65 6e 63 65 73 2e | 0d 2f 2f 20 45 76 65 72 |quences.|.// Ever|
|00001670| 79 20 76 61 6c 75 65 20 | 72 65 70 72 65 73 65 6e |y value |represen|
|00001680| 74 73 20 6f 6e 65 20 66 | 72 65 71 75 65 6e 63 79 |ts one f|requency|
|00001690| 2c 20 61 6e 64 20 63 61 | 6e 20 62 65 20 69 6e 20 |, and ca|n be in |
|000016a0| 72 61 6e 67 65 20 23 30 | 2d 32 33 32 2e 0d 2f 2f |range #0|-232..//|
|000016b0| 20 49 6e 70 75 74 3a 0d | 2f 2f 09 09 6e 6f 6e 65 | Input:.|//..none|
|000016c0| 0d 2f 2f 09 4f 75 74 70 | 75 74 3a 0d 2f 2f 09 09 |.//.Outp|ut:.//..|
|000016d0| 6f 75 74 41 72 72 61 79 | 09 09 3d 20 70 6f 69 6e |outArray|..= poin|
|000016e0| 74 65 72 20 74 6f 20 76 | 61 6c 75 65 73 20 61 72 |ter to v|alues ar|
|000016f0| 72 61 79 0d 2f 2f 09 09 | 6f 75 74 41 72 72 61 79 |ray.//..|outArray|
|00001700| 53 69 7a 65 09 3d 20 73 | 69 7a 65 20 6f 66 20 74 |Size.= s|ize of t|
|00001710| 68 65 20 61 72 72 61 79 | 0d 2f 2f 09 52 65 74 75 |he array|.//.Retu|
|00001720| 72 6e 73 3a 0d 2f 2f 09 | 09 6e 6f 74 68 69 6e 67 |rns:.//.|.nothing|
|00001730| 0d 0d 74 79 70 65 64 65 | 66 20 76 6f 69 64 09 09 |..typede|f void..|
|00001740| 28 2a 6d 61 56 69 73 47 | 65 74 46 46 54 41 72 72 |(*maVisG|etFFTArr|
|00001750| 61 79 29 28 64 6f 75 62 | 6c 65 2a 2a 20 6f 75 74 |ay)(doub|le** out|
|00001760| 46 46 54 2c 20 55 49 6e | 74 31 36 2a 20 6f 75 74 |FFT, UIn|t16* out|
|00001770| 46 46 54 53 69 7a 65 29 | 3b 0d 2f 2f 20 47 65 74 |FFTSize)|;.// Get|
|00001780| 20 46 46 54 20 61 72 72 | 61 79 2e 20 46 69 72 73 | FFT arr|ay. Firs|
|00001790| 74 20 68 61 6c 66 20 6f | 66 20 74 68 65 20 61 72 |t half o|f the ar|
|000017a0| 72 61 79 20 61 72 65 20 | 72 65 61 6c 20 70 61 72 |ray are |real par|
|000017b0| 74 73 2c 20 73 65 63 6f | 6e 64 20 2d 20 69 6d 61 |ts, seco|nd - ima|
|000017c0| 67 69 6e 61 72 79 2e 0d | 2f 2f 20 49 6e 70 75 74 |ginary..|// Input|
|000017d0| 3a 0d 2f 2f 09 09 6e 6f | 6e 65 0d 2f 2f 09 4f 75 |:.//..no|ne.//.Ou|
|000017e0| 74 70 75 74 3a 0d 2f 2f | 09 09 6f 75 74 46 46 54 |tput:.//|..outFFT|
|000017f0| 09 09 09 3d 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |...= poi|nter to |
|00001800| 72 61 77 20 66 66 74 20 | 61 72 72 61 79 20 28 6f |raw fft |array (o|
|00001810| 72 20 6e 69 6c 2c 20 69 | 66 20 6e 6f 74 20 61 76 |r nil, i|f not av|
|00001820| 61 69 6c 61 62 6c 65 29 | 0d 2f 2f 09 09 6f 75 74 |ailable)|.//..out|
|00001830| 42 75 66 66 65 72 53 69 | 7a 65 09 3d 20 73 69 7a |BufferSi|ze.= siz|
|00001840| 65 20 6f 66 20 74 68 65 | 20 61 72 72 61 79 0d 2f |e of the| array./|
|00001850| 2f 09 52 65 74 75 72 6e | 73 3a 0d 2f 2f 09 09 6e |/.Return|s:.//..n|
|00001860| 6f 74 68 69 6e 67 0d 0d | 74 79 70 65 64 65 66 20 |othing..|typedef |
|00001870| 76 6f 69 64 09 09 28 2a | 6d 61 56 69 73 47 65 74 |void..(*|maVisGet|
|00001880| 53 6f 75 6e 64 42 75 66 | 66 65 72 29 28 50 74 72 |SoundBuf|fer)(Ptr|
|00001890| 2a 20 6f 75 74 53 6f 75 | 6e 64 42 75 66 66 65 72 |* outSou|ndBuffer|
|000018a0| 2c 20 55 49 6e 74 31 36 | 2a 20 6f 75 74 42 75 66 |, UInt16|* outBuf|
|000018b0| 66 65 72 53 69 7a 65 29 | 3b 0d 2f 2f 20 47 65 74 |ferSize)|;.// Get|
|000018c0| 20 63 75 72 72 65 6e 74 | 20 73 6f 75 6e 64 20 62 | current| sound b|
|000018d0| 75 66 66 65 72 2e 0d 2f | 2f 20 49 6e 70 75 74 3a |uffer../|/ Input:|
|000018e0| 0d 2f 2f 09 09 6e 6f 6e | 65 0d 2f 2f 09 4f 75 74 |.//..non|e.//.Out|
|000018f0| 70 75 74 3a 0d 2f 2f 09 | 09 6f 75 74 53 6f 75 6e |put:.//.|.outSoun|
|00001900| 64 42 75 66 66 65 72 09 | 3d 20 70 6f 69 6e 74 65 |dBuffer.|= pointe|
|00001910| 72 20 74 6f 20 73 6f 75 | 6e 64 20 62 75 66 66 65 |r to sou|nd buffe|
|00001920| 72 20 62 65 69 6e 67 20 | 70 6c 61 79 65 64 20 28 |r being |played (|
|00001930| 6f 72 20 6e 69 6c 2c 20 | 69 66 20 6e 6f 20 74 72 |or nil, |if no tr|
|00001940| 61 63 6b 20 69 73 20 70 | 6c 61 79 69 6e 67 29 0d |ack is p|laying).|
|00001950| 2f 2f 09 09 6f 75 74 42 | 75 66 66 65 72 53 69 7a |//..outB|ufferSiz|
|00001960| 65 09 3d 20 73 69 7a 65 | 20 6f 66 20 74 68 65 20 |e.= size| of the |
|00001970| 62 75 66 66 65 72 2c 20 | 69 6e 20 62 79 74 65 73 |buffer, |in bytes|
|00001980| 0d 2f 2f 09 52 65 74 75 | 72 6e 73 3a 0d 2f 2f 09 |.//.Retu|rns:.//.|
|00001990| 09 6e 6f 74 68 69 6e 67 | 0d 0d 74 79 70 65 64 65 |.nothing|..typede|
|000019a0| 66 20 76 6f 69 64 09 09 | 28 2a 6d 61 56 69 73 47 |f void..|(*maVisG|
|000019b0| 65 74 53 74 61 74 75 73 | 29 28 55 49 6e 74 33 32 |etStatus|)(UInt32|
|000019c0| 2a 20 6f 75 74 54 69 6d | 65 72 2c 20 55 49 6e 74 |* outTim|er, UInt|
|000019d0| 33 32 2a 20 6f 75 74 53 | 74 61 74 75 73 29 3b 0d |32* outS|tatus);.|
|000019e0| 2f 2f 20 47 65 74 20 73 | 74 61 74 75 73 20 6f 66 |// Get s|tatus of|
|000019f0| 20 74 68 67 65 20 70 6c | 61 79 65 72 20 28 74 69 | thge pl|ayer (ti|
|00001a00| 6d 65 72 2c 20 73 74 61 | 74 65 73 20 6f 66 20 72 |mer, sta|tes of r|
|00001a10| 65 70 65 61 74 2c 20 72 | 61 6e 64 6f 6d 2c 20 73 |epeat, r|andom, s|
|00001a20| 6c 65 65 70 20 65 74 63 | 29 2e 0d 2f 2f 20 49 6e |leep etc|)..// In|
|00001a30| 70 75 74 3a 0d 2f 2f 09 | 09 6e 6f 6e 65 0d 2f 2f |put:.//.|.none.//|
|00001a40| 09 4f 75 74 70 75 74 3a | 0d 2f 2f 09 09 6f 75 74 |.Output:|.//..out|
|00001a50| 54 69 6d 65 72 09 09 09 | 3d 20 74 69 6d 65 72 2c |Timer...|= timer,|
|00001a60| 20 69 6e 20 73 65 63 6f | 6e 64 73 0d 2f 2f 09 09 | in seco|nds.//..|
|00001a70| 6f 75 74 53 74 61 74 75 | 73 09 09 09 3d 20 66 6c |outStatu|s...= fl|
|00001a80| 61 67 73 20 66 69 65 6c | 64 20 63 6f 6e 74 61 69 |ags fiel|d contai|
|00001a90| 6e 69 6e 67 20 73 74 61 | 74 75 73 2a 20 63 6f 6e |ning sta|tus* con|
|00001aa0| 73 74 61 6e 74 73 2e 0d | 2f 2f 09 09 09 09 09 09 |stants..|//......|
|00001ab0| 09 09 28 66 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |..(for e|xample, |
|00001ac0| 74 6f 20 63 68 65 63 6b | 20 69 66 20 52 61 6e 64 |to check| if Rand|
|00001ad0| 6f 6d 20 6d 6f 64 65 20 | 69 73 20 73 65 74 2c 20 |om mode |is set, |
|00001ae0| 63 68 65 63 6b 20 66 6f | 72 20 28 6f 75 74 53 74 |check fo|r (outSt|
|00001af0| 61 74 75 73 20 26 20 73 | 74 61 74 75 73 52 61 6e |atus & s|tatusRan|
|00001b00| 64 6f 6d 29 29 0d 2f 2f | 09 52 65 74 75 72 6e 73 |dom)).//|.Returns|
|00001b10| 3a 0d 2f 2f 09 09 6e 6f | 74 68 69 6e 67 0d 0d 2f |:.//..no|thing../|
|00001b20| 2f 20 53 74 61 74 75 73 | 20 63 6f 64 65 73 0d 65 |/ Status| codes.e|
|00001b30| 6e 75 6d 20 7b 0d 09 73 | 74 61 74 75 73 52 61 6e |num {..s|tatusRan|
|00001b40| 64 6f 6d 09 3d 20 28 31 | 4c 20 3c 3c 20 30 29 2c |dom.= (1|L << 0),|
|00001b50| 0d 09 73 74 61 74 75 73 | 53 6c 65 65 70 09 09 3d |..status|Sleep..=|
|00001b60| 20 28 31 4c 20 3c 3c 20 | 31 29 2c 0d 09 73 74 61 | (1L << |1),..sta|
|00001b70| 74 75 73 52 65 70 65 61 | 74 09 3d 20 28 31 4c 20 |tusRepea|t.= (1L |
|00001b80| 3c 3c 20 32 29 2c 0d 09 | 73 74 61 74 75 73 52 65 |<< 2),..|statusRe|
|00001b90| 70 65 61 74 31 09 3d 20 | 28 31 4c 20 3c 3c 20 33 |peat1.= |(1L << 3|
|00001ba0| 29 2c 0d 09 73 74 61 74 | 75 73 50 6c 61 79 69 6e |),..stat|usPlayin|
|00001bb0| 67 20 09 3d 20 28 31 4c | 20 3c 3c 20 34 29 2c 0d |g .= (1L| << 4),.|
|00001bc0| 09 73 74 61 74 75 73 50 | 61 75 73 65 64 09 3d 20 |.statusP|aused.= |
|00001bd0| 28 31 4c 20 3c 3c 20 35 | 29 2c 0d 09 73 74 61 74 |(1L << 5|),..stat|
|00001be0| 75 73 53 74 6f 70 70 65 | 64 20 09 3d 20 28 31 4c |usStoppe|d .= (1L|
|00001bf0| 20 3c 3c 20 36 29 0d 7d | 3b 0d 0d 74 79 70 65 64 | << 6).}|;..typed|
|00001c00| 65 66 20 4f 53 53 74 61 | 74 75 73 09 28 2a 6d 61 |ef OSSta|tus.(*ma|
|00001c10| 56 69 73 47 65 74 54 72 | 61 63 6b 4c 6f 63 61 74 |VisGetTr|ackLocat|
|00001c20| 69 6f 6e 50 72 6f 63 50 | 74 72 29 28 4f 53 54 79 |ionProcP|tr)(OSTy|
|00001c30| 70 65 2a 20 6f 75 74 54 | 79 70 65 2c 20 50 74 72 |pe* outT|ype, Ptr|
|00001c40| 2a 20 6f 75 74 44 61 74 | 61 29 3b 0d 2f 2f 20 47 |* outDat|a);.// G|
|00001c50| 65 74 20 63 75 72 72 65 | 6e 74 20 74 72 61 63 6b |et curre|nt track|
|00001c60| 20 6c 6f 63 61 74 69 6f | 6e 2e 0d 2f 2f 20 49 6e | locatio|n..// In|
|00001c70| 70 75 74 3a 0d 2f 2f 09 | 09 6e 6f 6e 65 0d 2f 2f |put:.//.|.none.//|
|00001c80| 09 4f 75 74 70 75 74 3a | 0d 2f 2f 09 09 6f 75 74 |.Output:|.//..out|
|00001c90| 54 79 70 65 09 09 09 3d | 20 6c 6f 63 61 74 69 6f |Type...=| locatio|
|00001ca0| 6e 20 74 79 70 65 2c 20 | 65 69 74 68 65 72 20 6c |n type, |either l|
|00001cb0| 6f 63 61 74 69 6f 6e 46 | 69 6c 65 2c 20 6c 6f 63 |ocationF|ile, loc|
|00001cc0| 61 74 69 6f 6e 55 52 4c | 20 6f 72 20 6c 6f 63 61 |ationURL| or loca|
|00001cd0| 74 69 6f 6e 4e 6f 6e 65 | 0d 2f 2f 09 09 6f 75 74 |tionNone|.//..out|
|00001ce0| 44 61 74 61 09 09 09 3d | 20 6c 6f 63 61 74 69 6f |Data...=| locatio|
|00001cf0| 6e 20 64 61 74 61 20 28 | 64 65 70 65 6e 64 73 20 |n data (|depends |
|00001d00| 6f 6e 20 6f 75 74 54 79 | 70 65 2c 20 73 65 65 20 |on outTy|pe, see |
|00001d10| 62 65 6c 6f 77 29 0d 2f | 2f 09 52 65 74 75 72 6e |below)./|/.Return|
|00001d20| 73 3a 0d 2f 2f 09 09 6e | 6f 45 72 72 09 09 09 3d |s:.//..n|oErr...=|
|00001d30| 20 6c 79 72 69 63 73 20 | 69 6e 66 6f 72 6d 61 74 | lyrics |informat|
|00001d40| 69 6f 6e 20 66 65 74 63 | 68 65 64 2e 0d 2f 2f 09 |ion fetc|hed..//.|
|00001d50| 09 72 65 73 4e 6f 74 46 | 6f 75 6e 64 09 09 3d 20 |.resNotF|ound..= |
|00001d60| 6e 6f 20 74 72 61 63 6b | 20 69 73 20 70 6c 61 79 |no track| is play|
|00001d70| 69 6e 67 20 61 74 20 74 | 68 65 20 6d 6f 6d 65 6e |ing at t|he momen|
|00001d80| 74 2e 0d 0d 2f 2f 20 4c | 6f 63 61 74 69 6f 6e 20 |t...// L|ocation |
|00001d90| 74 79 70 65 73 0d 65 6e | 75 6d 20 7b 0d 09 6c 6f |types.en|um {..lo|
|00001da0| 63 61 74 69 6f 6e 46 69 | 6c 65 09 3d 20 27 66 69 |cationFi|le.= 'fi|
|00001db0| 6c 65 27 2c 09 09 2f 2f | 20 6f 75 74 44 61 74 61 |le',..//| outData|
|00001dc0| 20 3d 20 46 53 53 70 65 | 63 50 74 72 0d 09 6c 6f | = FSSpe|cPtr..lo|
|00001dd0| 63 61 74 69 6f 6e 55 52 | 4c 09 09 3d 20 27 75 72 |cationUR|L..= 'ur|
|00001de0| 6c 20 27 2c 09 09 2f 2f | 20 6f 75 74 44 61 74 61 |l ',..//| outData|
|00001df0| 20 3d 20 63 68 61 72 2a | 20 28 43 20 73 74 72 69 | = char*| (C stri|
|00001e00| 6e 67 29 0d 09 6c 6f 63 | 61 74 69 6f 6e 4e 6f 6e |ng)..loc|ationNon|
|00001e10| 65 09 3d 20 27 6e 6f 6e | 65 27 09 09 2f 2f 20 6f |e.= 'non|e'..// o|
|00001e20| 75 74 44 61 74 61 20 3d | 20 76 6f 69 64 2c 20 64 |utData =| void, d|
|00001e30| 6f 65 73 20 6e 6f 74 20 | 63 6f 6e 74 61 69 6e 73 |oes not |contains|
|00001e40| 20 76 61 6c 69 64 20 64 | 61 74 61 0d 7d 3b 0d 0d | valid d|ata.};..|
|00001e50| 74 79 70 65 64 65 66 20 | 4f 53 53 74 61 74 75 73 |typedef |OSStatus|
|00001e60| 09 28 2a 6d 61 56 69 73 | 47 65 74 49 44 33 49 6e |.(*maVis|GetID3In|
|00001e70| 66 6f 72 6d 61 74 69 6f | 6e 50 72 6f 63 50 74 72 |formatio|nProcPtr|
|00001e80| 29 28 53 74 72 69 6e 67 | 50 74 72 20 6f 75 74 41 |)(String|Ptr outA|
|00001e90| 72 74 69 73 74 2c 20 53 | 74 72 69 6e 67 50 74 72 |rtist, S|tringPtr|
|00001ea0| 20 6f 75 74 54 69 74 6c | 65 2c 20 53 74 72 69 6e | outTitl|e, Strin|
|00001eb0| 67 50 74 72 20 6f 75 74 | 41 6c 62 75 6d 2c 20 53 |gPtr out|Album, S|
|00001ec0| 74 72 69 6e 67 50 74 72 | 20 6f 75 74 59 65 61 72 |tringPtr| outYear|
|00001ed0| 2c 20 50 74 72 2a 20 6f | 75 74 4c 79 72 69 63 73 |, Ptr* o|utLyrics|
|00001ee0| 29 3b 0d 2f 2f 20 47 65 | 74 20 63 75 72 72 65 6e |);.// Ge|t curren|
|00001ef0| 74 20 74 72 61 63 6b 20 | 49 44 33 20 69 6e 66 6f |t track |ID3 info|
|00001f00| 72 6d 61 74 69 6f 6e 2e | 0d 2f 2f 20 49 6e 70 75 |rmation.|.// Inpu|
|00001f10| 74 3a 0d 2f 2f 09 09 6e | 6f 6e 65 0d 2f 2f 09 4f |t:.//..n|one.//.O|
|00001f20| 75 74 70 75 74 3a 0d 2f | 2f 09 09 6f 75 74 41 72 |utput:./|/..outAr|
|00001f30| 74 69 73 74 09 09 3d 20 | 61 72 74 69 73 74 0d 2f |tist..= |artist./|
|00001f40| 2f 09 09 6f 75 74 54 69 | 74 6c 65 09 09 3d 20 74 |/..outTi|tle..= t|
|00001f50| 69 74 6c 65 0d 2f 2f 09 | 09 6f 75 74 41 6c 62 75 |itle.//.|.outAlbu|
|00001f60| 6d 09 09 3d 20 61 6c 62 | 75 6d 20 28 69 66 20 61 |m..= alb|um (if a|
|00001f70| 76 61 69 6c 61 62 6c 65 | 2c 20 6f 72 20 6e 69 6c |vailable|, or nil|
|00001f80| 29 0d 2f 2f 09 09 6f 75 | 74 59 65 61 72 09 09 09 |).//..ou|tYear...|
|00001f90| 3d 20 79 65 61 72 20 28 | 69 66 20 61 76 61 69 6c |= year (|if avail|
|00001fa0| 61 62 6c 65 2c 20 6f 72 | 20 6e 69 6c 29 0d 2f 2f |able, or| nil).//|
|00001fb0| 09 09 6f 75 74 4c 79 72 | 69 63 73 09 09 3d 20 6c |..outLyr|ics..= l|
|00001fc0| 79 72 69 63 73 20 28 69 | 66 20 61 76 61 69 6c 61 |yrics (i|f availa|
|00001fd0| 62 6c 65 2c 20 6f 72 20 | 6e 69 6c 29 0d 2f 2f 09 |ble, or |nil).//.|
|00001fe0| 52 65 74 75 72 6e 73 3a | 0d 2f 2f 09 09 6e 6f 45 |Returns:|.//..noE|
|00001ff0| 72 72 09 09 09 3d 20 6c | 79 72 69 63 73 20 69 6e |rr...= l|yrics in|
|00002000| 66 6f 72 6d 61 74 69 6f | 6e 20 66 65 74 63 68 65 |formatio|n fetche|
|00002010| 64 2e 0d 2f 2f 09 09 72 | 65 73 4e 6f 74 46 6f 75 |d..//..r|esNotFou|
|00002020| 6e 64 09 09 3d 20 6e 6f | 20 74 72 61 63 6b 20 69 |nd..= no| track i|
|00002030| 73 20 70 6c 61 79 69 6e | 67 20 61 74 20 74 68 65 |s playin|g at the|
|00002040| 20 6d 6f 6d 65 6e 74 2e | 0d 0d 74 79 70 65 64 65 | moment.|..typede|
|00002050| 66 20 51 44 47 6c 6f 62 | 61 6c 73 50 74 72 20 28 |f QDGlob|alsPtr (|
|00002060| 2a 6d 61 56 69 73 47 65 | 74 51 44 50 74 72 50 72 |*maVisGe|tQDPtrPr|
|00002070| 6f 63 50 74 72 29 28 76 | 6f 69 64 29 3b 0d 2f 2f |ocPtr)(v|oid);.//|
|00002080| 20 52 65 74 75 72 6e 20 | 74 68 65 20 70 6f 69 6e | Return |the poin|
|00002090| 74 65 72 20 74 6f 20 51 | 44 20 67 6c 6f 62 61 6c |ter to Q|D global|
|000020a0| 73 20 28 71 64 2d 3e 2e | 2e 2e 29 2e 0d 2f 2f 20 |s (qd->.|..)..// |
|000020b0| 49 6e 70 75 74 3a 0d 2f | 2f 09 09 6e 6f 6e 65 0d |Input:./|/..none.|
|000020c0| 2f 2f 09 4f 75 74 70 75 | 74 3a 0d 2f 2f 09 09 6e |//.Outpu|t:.//..n|
|000020d0| 6f 6e 65 0d 2f 2f 09 52 | 65 74 75 72 6e 73 3a 0d |one.//.R|eturns:.|
|000020e0| 2f 2f 09 09 70 6f 69 6e | 74 65 72 20 74 6f 20 71 |//..poin|ter to q|
|000020f0| 64 20 67 6c 6f 62 61 6c | 73 0d 0d 74 79 70 65 64 |d global|s..typed|
|00002100| 65 66 20 76 6f 69 64 20 | 28 2a 6d 61 56 69 73 45 |ef void |(*maVisE|
|00002110| 6e 74 65 72 46 75 6c 6c | 53 63 72 65 65 6e 29 28 |nterFull|Screen)(|
|00002120| 4f 53 54 79 70 65 20 69 | 6e 41 75 74 68 6f 72 49 |OSType i|nAuthorI|
|00002130| 44 2c 20 4f 53 54 79 70 | 65 20 69 6e 50 6c 75 67 |D, OSTyp|e inPlug|
|00002140| 69 6e 49 44 29 3b 0d 2f | 2f 20 4e 6f 74 69 66 79 |inID);./|/ Notify|
|00002150| 20 4d 41 43 41 53 54 20 | 6f 66 20 79 6f 75 72 20 | MACAST |of your |
|00002160| 70 6c 75 67 69 6e 20 65 | 6e 74 65 72 69 6e 67 20 |plugin e|ntering |
|00002170| 66 75 6c 6c 2d 73 63 72 | 65 65 6e 20 6d 6f 64 65 |full-scr|een mode|
|00002180| 2e 0d 2f 2f 20 41 66 74 | 65 72 20 74 68 69 73 20 |..// Aft|er this |
|00002190| 63 61 6c 6c 20 4d 41 43 | 41 53 54 20 68 69 64 65 |call MAC|AST hide|
|000021a0| 73 20 61 6c 6c 20 69 74 | 73 20 77 69 6e 64 6f 77 |s all it|s window|
|000021b0| 73 2c 20 61 6e 64 20 73 | 75 73 70 65 6e 64 73 20 |s, and s|uspends |
|000021c0| 70 72 6f 63 65 73 73 69 | 6e 67 20 6f 74 68 65 72 |processi|ng other|
|000021d0| 20 76 69 73 75 61 6c 20 | 70 6c 75 67 69 6e 73 0d | visual |plugins.|
|000021e0| 2f 2f 20 74 6f 20 65 6e | 73 75 72 65 20 6d 61 78 |// to en|sure max|
|000021f0| 69 6d 75 6d 20 43 50 55 | 20 74 69 6d 65 20 61 76 |imum CPU| time av|
|00002200| 61 69 6c 61 62 6c 65 20 | 66 6f 72 20 79 6f 75 72 |ailable |for your|
|00002210| 20 70 6c 75 67 69 6e 2e | 0d 2f 2f 20 49 6e 70 75 | plugin.|.// Inpu|
|00002220| 74 3a 0d 2f 2f 09 09 69 | 6e 41 75 74 68 6f 72 49 |t:.//..i|nAuthorI|
|00002230| 44 09 09 3d 20 61 75 74 | 68 6f 72 20 49 44 20 61 |D..= aut|hor ID a|
|00002240| 73 20 64 65 66 69 6e 65 | 64 20 69 6e 20 56 69 73 |s define|d in Vis|
|00002250| 49 6e 66 6f 42 6c 6f 63 | 6b 20 73 74 72 75 63 74 |InfoBloc|k struct|
|00002260| 75 72 65 0d 2f 2f 09 09 | 69 6e 50 6c 75 67 49 44 |ure.//..|inPlugID|
|00002270| 09 09 3d 20 70 6c 75 67 | 69 6e 20 49 44 20 61 73 |..= plug|in ID as|
|00002280| 20 64 65 66 69 6e 65 64 | 20 69 6e 20 56 69 73 49 | defined| in VisI|
|00002290| 6e 66 6f 42 6c 6f 63 6b | 20 73 74 72 75 63 74 75 |nfoBlock| structu|
|000022a0| 72 65 0d 2f 2f 09 4f 75 | 74 70 75 74 3a 0d 2f 2f |re.//.Ou|tput:.//|
|000022b0| 09 09 6e 6f 6e 65 0d 2f | 2f 09 52 65 74 75 72 6e |..none./|/.Return|
|000022c0| 73 3a 0d 2f 2f 09 09 6e | 6f 74 68 69 6e 67 0d 2f |s:.//..n|othing./|
|000022d0| 2f 0d 2f 2f 20 4e 6f 74 | 65 3a 20 69 66 20 79 6f |/.// Not|e: if yo|
|000022e0| 75 20 70 61 73 73 20 61 | 75 74 68 6f 72 2f 70 6c |u pass a|uthor/pl|
|000022f0| 75 67 69 6e 20 49 44 73 | 20 64 69 66 66 65 72 65 |ugin IDs| differe|
|00002300| 6e 74 20 74 68 61 6e 20 | 64 65 66 69 6e 65 64 20 |nt than |defined |
|00002310| 69 6e 20 79 6f 75 72 20 | 56 69 73 49 6e 66 6f 42 |in your |VisInfoB|
|00002320| 6c 6f 63 6b 2c 20 74 68 | 61 74 20 63 6f 75 6c 64 |lock, th|at could|
|00002330| 20 63 61 75 73 65 0d 2f | 2f 20 61 62 6e 6f 72 6d | cause./|/ abnorm|
|00002340| 61 6c 20 4d 41 43 41 53 | 54 20 62 65 68 61 76 69 |al MACAS|T behavi|
|00002350| 6f 72 2e 0d 0d 74 79 70 | 65 64 65 66 20 76 6f 69 |or...typ|edef voi|
|00002360| 64 20 28 2a 6d 61 56 69 | 73 45 78 69 74 46 75 6c |d (*maVi|sExitFul|
|00002370| 6c 53 63 72 65 65 6e 29 | 28 76 6f 69 64 29 3b 0d |lScreen)|(void);.|
|00002380| 2f 2f 20 4e 6f 74 69 66 | 79 20 4d 41 43 41 53 54 |// Notif|y MACAST|
|00002390| 20 6f 66 20 79 6f 75 72 | 20 70 6c 75 67 69 6e 20 | of your| plugin |
|000023a0| 65 78 69 74 69 6e 67 20 | 66 75 6c 6c 2d 73 63 72 |exiting |full-scr|
|000023b0| 65 65 6e 20 6d 6f 64 65 | 2e 0d 2f 2f 20 41 6c 6c |een mode|..// All|
|000023c0| 20 70 72 65 76 69 6f 75 | 73 6c 79 20 68 69 64 64 | previou|sly hidd|
|000023d0| 65 6e 20 77 69 6e 64 6f | 77 73 20 77 69 6c 6c 20 |en windo|ws will |
|000023e0| 62 65 20 73 68 6f 77 6e | 20 61 67 61 69 6e 2c 20 |be shown| again, |
|000023f0| 61 6e 64 20 6f 74 68 65 | 72 20 76 69 73 75 61 6c |and othe|r visual|
|00002400| 20 70 6c 75 67 69 6e 73 | 20 77 69 6c 6c 20 67 65 | plugins| will ge|
|00002410| 74 20 65 76 65 6e 74 73 | 2e 0d 2f 2f 20 49 6e 70 |t events|..// Inp|
|00002420| 75 74 3a 0d 2f 2f 09 09 | 6e 6f 6e 65 0d 2f 2f 09 |ut:.//..|none.//.|
|00002430| 4f 75 74 70 75 74 3a 0d | 2f 2f 09 09 6e 6f 6e 65 |Output:.|//..none|
|00002440| 0d 2f 2f 09 52 65 74 75 | 72 6e 73 3a 0d 2f 2f 09 |.//.Retu|rns:.//.|
|00002450| 09 6e 6f 74 68 69 6e 67 | 0d 0d 74 79 70 65 64 65 |.nothing|..typede|
|00002460| 66 20 4f 53 53 74 61 74 | 75 73 20 28 2a 6d 61 56 |f OSStat|us (*maV|
|00002470| 69 73 53 61 76 65 50 72 | 65 66 73 29 28 4f 53 54 |isSavePr|efs)(OST|
|00002480| 79 70 65 20 69 6e 41 75 | 74 68 6f 72 49 44 2c 20 |ype inAu|thorID, |
|00002490| 4f 53 54 79 70 65 20 69 | 6e 50 6c 75 67 69 6e 49 |OSType i|nPluginI|
|000024a0| 44 2c 20 50 74 72 20 69 | 6e 42 75 66 66 65 72 2c |D, Ptr i|nBuffer,|
|000024b0| 20 55 49 6e 74 31 36 20 | 69 6e 53 69 7a 65 29 3b | UInt16 |inSize);|
|000024c0| 0d 2f 2f 20 53 61 76 65 | 20 70 6c 75 67 69 6e 2d |.// Save| plugin-|
|000024d0| 73 70 65 63 69 66 69 63 | 20 70 72 65 66 65 72 65 |specific| prefere|
|000024e0| 6e 63 65 73 20 69 6e 20 | 4d 41 43 41 53 54 20 44 |nces in |MACAST D|
|000024f0| 61 74 61 20 66 69 6c 65 | 20 6c 6f 63 61 74 65 64 |ata file| located|
|00002500| 20 69 6e 20 53 79 73 74 | 65 6d 20 46 6f 6c 64 65 | in Syst|em Folde|
|00002510| 72 2e 0d 2f 2f 20 49 6e | 70 75 74 3a 0d 2f 2f 09 |r..// In|put:.//.|
|00002520| 09 69 6e 41 75 74 68 6f | 72 49 44 20 09 09 3d 20 |.inAutho|rID ..= |
|00002530| 61 75 74 68 6f 72 49 44 | 20 6f 66 20 70 6c 75 67 |authorID| of plug|
|00002540| 69 6e 0d 2f 2f 09 09 69 | 6e 50 6c 75 67 69 6e 49 |in.//..i|nPluginI|
|00002550| 44 20 09 09 3d 20 70 6c | 75 67 69 6e 49 44 20 6f |D ..= pl|uginID o|
|00002560| 66 20 70 6c 75 67 69 6e | 0d 2f 2f 09 09 69 6e 42 |f plugin|.//..inB|
|00002570| 75 66 66 65 72 09 09 3d | 20 70 6f 69 6e 74 65 72 |uffer..=| pointer|
|00002580| 20 74 6f 20 62 75 66 66 | 65 72 20 63 6f 6e 74 61 | to buff|er conta|
|00002590| 69 6e 69 6e 67 20 70 72 | 65 66 65 72 65 6e 63 65 |ining pr|eference|
|000025a0| 73 20 63 68 75 6e 6b 20 | 74 6f 20 62 65 20 73 61 |s chunk |to be sa|
|000025b0| 76 65 64 0d 2f 2f 09 09 | 69 6e 53 69 7a 65 09 09 |ved.//..|inSize..|
|000025c0| 09 3d 20 73 69 7a 65 20 | 6f 66 20 62 75 66 66 65 |.= size |of buffe|
|000025d0| 72 20 74 6f 20 62 65 20 | 73 61 76 65 64 0d 2f 2f |r to be |saved.//|
|000025e0| 09 4f 75 74 70 75 74 3a | 0d 2f 2f 09 09 6e 6f 6e |.Output:|.//..non|
|000025f0| 65 0d 2f 2f 09 52 65 74 | 75 72 6e 73 3a 0d 2f 2f |e.//.Ret|urns:.//|
|00002600| 09 09 6e 6f 45 72 72 09 | 09 09 3d 20 70 72 65 66 |..noErr.|..= pref|
|00002610| 65 72 65 6e 63 65 73 20 | 73 61 76 65 64 20 73 75 |erences |saved su|
|00002620| 63 63 65 73 73 66 75 6c | 6c 79 2e 0d 2f 2f 09 09 |ccessful|ly..//..|
|00002630| 6d 65 6d 46 75 6c 6c 45 | 72 72 09 09 3d 20 61 6e |memFullE|rr..= an|
|00002640| 20 75 6e 6b 6e 6f 77 6e | 2c 20 70 72 6f 62 61 62 | unknown|, probab|
|00002650| 6c 79 20 6d 65 6d 6f 72 | 79 2d 72 65 6c 61 74 65 |ly memor|y-relate|
|00002660| 64 20 65 72 72 6f 72 20 | 68 61 73 20 6f 63 63 75 |d error |has occu|
|00002670| 72 72 65 64 2e 0d 0d 74 | 79 70 65 64 65 66 20 4f |rred...t|ypedef O|
|00002680| 53 53 74 61 74 75 73 20 | 28 2a 6d 61 56 69 73 52 |SStatus |(*maVisR|
|00002690| 65 61 64 50 72 65 66 73 | 29 28 4f 53 54 79 70 65 |eadPrefs|)(OSType|
|000026a0| 20 69 6e 41 75 74 68 6f | 72 49 44 2c 20 4f 53 54 | inAutho|rID, OST|
|000026b0| 79 70 65 20 69 6e 50 6c | 75 67 69 6e 49 44 2c 20 |ype inPl|uginID, |
|000026c0| 50 74 72 20 69 6e 42 75 | 66 66 65 72 2c 20 55 49 |Ptr inBu|ffer, UI|
|000026d0| 6e 74 31 36 2a 20 69 6f | 53 69 7a 65 29 3b 0d 2f |nt16* io|Size);./|
|000026e0| 2f 20 52 65 61 64 20 70 | 6c 75 67 69 6e 2d 73 70 |/ Read p|lugin-sp|
|000026f0| 65 63 69 66 69 63 20 70 | 72 65 66 65 72 65 6e 63 |ecific p|referenc|
|00002700| 65 73 20 79 6f 75 20 68 | 61 76 65 20 73 61 76 65 |es you h|ave save|
|00002710| 64 20 62 65 66 6f 72 65 | 20 77 69 74 68 20 53 61 |d before| with Sa|
|00002720| 76 65 50 72 65 66 73 20 | 68 6f 6f 6b 2e 0d 2f 2f |vePrefs |hook..//|
|00002730| 20 49 6e 70 75 74 3a 0d | 2f 2f 09 09 69 6e 41 75 | Input:.|//..inAu|
|00002740| 74 68 6f 72 49 44 20 09 | 09 3d 20 61 75 74 68 6f |thorID .|.= autho|
|00002750| 72 49 44 20 6f 66 20 70 | 6c 75 67 69 6e 0d 2f 2f |rID of p|lugin.//|
|00002760| 09 09 69 6e 50 6c 75 67 | 69 6e 49 44 20 09 09 3d |..inPlug|inID ..=|
|00002770| 20 70 6c 75 67 69 6e 49 | 44 20 6f 66 20 70 6c 75 | pluginI|D of plu|
|00002780| 67 69 6e 0d 2f 2f 09 09 | 69 6e 42 75 66 66 65 72 |gin.//..|inBuffer|
|00002790| 09 09 3d 20 70 6f 69 6e | 74 65 72 20 74 6f 20 70 |..= poin|ter to p|
|000027a0| 72 65 2d 61 6c 6c 6f 63 | 61 74 65 64 20 62 75 66 |re-alloc|ated buf|
|000027b0| 66 65 72 20 74 6f 20 73 | 74 6f 72 65 20 70 72 65 |fer to s|tore pre|
|000027c0| 66 65 72 65 6e 63 65 73 | 0d 2f 2f 09 09 69 6f 53 |ferences|.//..ioS|
|000027d0| 69 7a 65 09 09 09 3d 20 | 73 69 7a 65 20 6f 66 20 |ize...= |size of |
|000027e0| 61 6c 6c 6f 63 61 74 65 | 64 20 62 75 66 66 65 72 |allocate|d buffer|
|000027f0| 0d 2f 2f 09 4f 75 74 70 | 75 74 3a 0d 2f 2f 09 09 |.//.Outp|ut:.//..|
|00002800| 69 6f 53 69 7a 65 09 09 | 09 3d 20 61 63 74 75 61 |ioSize..|.= actua|
|00002810| 6c 20 73 69 7a 65 20 6f | 66 20 70 72 65 66 65 72 |l size o|f prefer|
|00002820| 65 6e 63 65 73 0d 2f 2f | 09 52 65 74 75 72 6e 73 |ences.//|.Returns|
|00002830| 3a 0d 2f 2f 09 09 6e 6f | 45 72 72 09 09 09 3d 20 |:.//..no|Err...= |
|00002840| 70 72 65 66 65 72 65 6e | 63 65 73 20 72 65 61 64 |preferen|ces read|
|00002850| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 2e 0d 2f | success|fully../|
|00002860| 2f 09 09 72 65 73 4e 6f | 74 46 6f 75 6e 64 09 09 |/..resNo|tFound..|
|00002870| 3d 20 75 6e 61 62 6c 65 | 20 74 6f 20 66 69 6e 64 |= unable| to find|
|00002880| 20 73 75 63 68 20 70 72 | 65 66 65 72 65 6e 63 65 | such pr|eference|
|00002890| 73 20 63 68 75 6e 6b 0d | 2f 2f 09 09 6d 65 6d 46 |s chunk.|//..memF|
|000028a0| 75 6c 6c 45 72 72 09 09 | 3d 20 73 69 7a 65 20 6f |ullErr..|= size o|
|000028b0| 66 20 70 72 65 66 65 72 | 65 6e 63 65 73 20 63 68 |f prefer|ences ch|
|000028c0| 75 6e 6b 20 65 78 63 65 | 65 64 73 20 73 69 7a 65 |unk exce|eds size|
|000028d0| 20 6f 66 20 61 6c 6c 6f | 63 61 74 65 64 20 62 75 | of allo|cated bu|
|000028e0| 66 66 65 72 0d 2f 2f 09 | 09 09 09 09 09 09 28 69 |ffer.//.|......(i|
|000028f0| 6f 53 69 7a 65 20 63 6f | 6e 74 61 69 6e 73 20 73 |oSize co|ntains s|
|00002900| 69 7a 65 20 6f 66 20 70 | 72 65 66 65 72 65 6e 63 |ize of p|referenc|
|00002910| 65 73 20 63 68 75 6e 6b | 29 0d 0d 74 79 70 65 64 |es chunk|)..typed|
|00002920| 65 66 20 76 6f 69 64 20 | 28 2a 6d 61 56 69 73 42 |ef void |(*maVisB|
|00002930| 72 6f 61 64 63 61 73 74 | 29 28 53 49 6e 74 33 32 |roadcast|)(SInt32|
|00002940| 20 69 6e 4d 65 73 73 61 | 67 65 2c 20 76 6f 69 64 | inMessa|ge, void|
|00002950| 2a 20 69 6e 44 61 74 61 | 29 3b 0d 2f 2f 20 42 72 |* inData|);.// Br|
|00002960| 6f 61 64 63 61 73 74 20 | 4d 41 43 41 53 54 20 73 |oadcast |MACAST s|
|00002970| 79 73 74 65 6d 20 6d 65 | 73 73 61 67 65 20 74 6f |ystem me|ssage to|
|00002980| 20 69 74 73 20 73 75 62 | 73 79 73 74 65 6d 73 2e | its sub|systems.|
|00002990| 20 44 6f 6e 27 74 20 63 | 61 6c 6c 20 74 68 69 73 | Don't c|all this|
|000029a0| 20 75 6e 6c 65 73 73 20 | 79 6f 75 20 6b 6e 6f 77 | unless |you know|
|000029b0| 0d 2f 2f 20 77 68 61 74 | 20 79 6f 75 27 72 65 20 |.// what| you're |
|000029c0| 64 6f 69 6e 67 2e 0d 2f | 2f 20 49 6e 70 75 74 3a |doing../|/ Input:|
|000029d0| 0d 2f 2f 09 09 69 6e 4d | 65 73 73 61 67 65 20 09 |.//..inM|essage .|
|000029e0| 09 3d 20 6d 65 73 73 61 | 67 65 20 69 64 20 74 6f |.= messa|ge id to|
|000029f0| 20 62 65 20 62 72 6f 61 | 64 63 61 73 74 65 64 0d | be broa|dcasted.|
|00002a00| 2f 2f 09 09 69 6e 44 61 | 74 61 20 09 09 09 3d 20 |//..inDa|ta ...= |
|00002a10| 64 61 74 61 20 74 6f 20 | 62 65 20 62 72 6f 61 64 |data to |be broad|
|00002a20| 63 61 73 74 65 64 2c 20 | 6f 72 20 6e 69 6c 0d 2f |casted, |or nil./|
|00002a30| 2f 09 4f 75 74 70 75 74 | 3a 0d 2f 2f 09 09 6e 6f |/.Output|:.//..no|
|00002a40| 6e 65 0d 2f 2f 09 52 65 | 74 75 72 6e 73 3a 0d 2f |ne.//.Re|turns:./|
|00002a50| 2f 09 09 6e 6f 74 68 69 | 6e 67 0d 0d 2f 2f 20 56 |/..nothi|ng..// V|
|00002a60| 61 72 69 6f 75 73 20 73 | 74 72 75 63 74 75 72 65 |arious s|tructure|
|00002a70| 73 0d 23 70 72 61 67 6d | 61 20 6f 70 74 69 6f 6e |s.#pragm|a option|
|00002a80| 73 20 61 6c 69 67 6e 3d | 70 6f 77 65 72 0d 0d 2f |s align=|power../|
|00002a90| 2f 20 54 68 69 73 20 69 | 73 20 74 68 65 20 73 74 |/ This i|s the st|
|00002aa0| 72 75 63 74 75 72 65 20 | 66 6f 72 20 4d 41 43 41 |ructure |for MACA|
|00002ab0| 53 54 20 63 61 6c 6c 62 | 61 63 6b 73 2e 0d 74 79 |ST callb|acks..ty|
|00002ac0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 7b 0d 09 |pedef st|ruct {..|
|00002ad0| 6d 61 56 69 73 47 65 74 | 56 61 6c 75 65 73 41 72 |maVisGet|ValuesAr|
|00002ae0| 72 61 79 09 09 09 09 47 | 65 74 56 61 6c 75 65 73 |ray....G|etValues|
|00002af0| 3b 0d 09 6d 61 56 69 73 | 47 65 74 46 46 54 41 72 |;..maVis|GetFFTAr|
|00002b00| 72 61 79 09 09 09 09 47 | 65 74 46 46 54 3b 0d 09 |ray....G|etFFT;..|
|00002b10| 6d 61 56 69 73 47 65 74 | 53 74 61 74 75 73 09 09 |maVisGet|Status..|
|00002b20| 09 09 09 47 65 74 53 74 | 61 74 75 73 3b 0d 09 6d |...GetSt|atus;..m|
|00002b30| 61 56 69 73 47 65 74 54 | 72 61 63 6b 4c 6f 63 61 |aVisGetT|rackLoca|
|00002b40| 74 69 6f 6e 50 72 6f 63 | 50 74 72 09 47 65 74 54 |tionProc|Ptr.GetT|
|00002b50| 72 61 63 6b 4c 6f 63 61 | 74 69 6f 6e 3b 0d 09 6d |rackLoca|tion;..m|
|00002b60| 61 56 69 73 47 65 74 49 | 44 33 49 6e 66 6f 72 6d |aVisGetI|D3Inform|
|00002b70| 61 74 69 6f 6e 50 72 6f | 63 50 74 72 09 47 65 74 |ationPro|cPtr.Get|
|00002b80| 49 44 33 49 6e 66 6f 72 | 6d 61 74 69 6f 6e 3b 0d |ID3Infor|mation;.|
|00002b90| 09 6d 61 56 69 73 47 65 | 74 51 44 50 74 72 50 72 |.maVisGe|tQDPtrPr|
|00002ba0| 6f 63 50 74 72 09 09 09 | 47 65 74 51 44 47 6c 6f |ocPtr...|GetQDGlo|
|00002bb0| 62 61 6c 73 3b 0d 09 0d | 09 2f 2f 20 46 75 6c 6c |bals;...|.// Full|
|00002bc0| 2d 73 63 72 65 65 6e 20 | 6d 6f 64 65 0d 09 6d 61 |-screen |mode..ma|
|00002bd0| 56 69 73 45 6e 74 65 72 | 46 75 6c 6c 53 63 72 65 |VisEnter|FullScre|
|00002be0| 65 6e 09 09 09 45 6e 74 | 65 72 46 75 6c 6c 53 63 |en...Ent|erFullSc|
|00002bf0| 72 65 65 6e 3b 0d 09 6d | 61 56 69 73 45 78 69 74 |reen;..m|aVisExit|
|00002c00| 46 75 6c 6c 53 63 72 65 | 65 6e 09 09 09 09 45 78 |FullScre|en....Ex|
|00002c10| 69 74 46 75 6c 6c 53 63 | 72 65 65 6e 3b 0d 09 0d |itFullSc|reen;...|
|00002c20| 09 2f 2f 20 53 74 6f 72 | 69 6e 67 20 61 6e 64 20 |.// Stor|ing and |
|00002c30| 72 65 61 64 69 6e 67 20 | 70 72 65 66 73 0d 09 6d |reading |prefs..m|
|00002c40| 61 56 69 73 52 65 61 64 | 50 72 65 66 73 09 09 09 |aVisRead|Prefs...|
|00002c50| 09 09 52 65 61 64 50 72 | 65 66 73 3b 0d 09 6d 61 |..ReadPr|efs;..ma|
|00002c60| 56 69 73 53 61 76 65 50 | 72 65 66 73 09 09 09 09 |VisSaveP|refs....|
|00002c70| 09 53 61 76 65 50 72 65 | 66 73 3b 0d 0d 09 6d 61 |.SavePre|fs;...ma|
|00002c80| 56 69 73 47 65 74 53 6f | 75 6e 64 42 75 66 66 65 |VisGetSo|undBuffe|
|00002c90| 72 09 09 09 09 47 65 74 | 53 6f 75 6e 64 42 75 66 |r....Get|SoundBuf|
|00002ca0| 66 65 72 3b 0d 09 0d 09 | 2f 2f 20 4e 65 77 20 66 |fer;....|// New f|
|00002cb0| 6f 72 20 31 2e 33 0d 09 | 6d 61 56 69 73 42 72 6f |or 1.3..|maVisBro|
|00002cc0| 61 64 63 61 73 74 09 09 | 09 09 09 42 72 6f 61 64 |adcast..|...Broad|
|00002cd0| 63 61 73 74 3b 0d 7d 20 | 56 50 43 61 6c 6c 62 61 |cast;.} |VPCallba|
|00002ce0| 63 6b 73 2c 20 2a 56 50 | 43 61 6c 6c 62 61 63 6b |cks, *VP|Callback|
|00002cf0| 73 50 74 72 3b 0d 0d 2f | 2f 20 4d 61 69 6e 20 73 |sPtr;../|/ Main s|
|00002d00| 74 72 75 63 74 75 72 65 | 20 66 6f 72 20 74 68 65 |tructure| for the|
|00002d10| 20 70 6c 75 67 69 6e 2e | 20 4d 61 69 6e 20 65 6e | plugin.| Main en|
|00002d20| 74 72 79 20 70 6f 69 6e | 74 20 66 6f 72 20 74 68 |try poin|t for th|
|00002d30| 65 20 50 45 46 20 66 72 | 61 67 6d 65 6e 74 20 73 |e PEF fr|agment s|
|00002d40| 68 6f 75 6c 64 20 70 6f | 69 6e 74 20 74 6f 0d 2f |hould po|int to./|
|00002d50| 2f 20 61 20 67 6c 6f 62 | 61 6c 20 76 61 72 69 61 |/ a glob|al varia|
|00002d60| 62 6c 65 20 6f 66 20 74 | 68 69 73 20 74 79 70 65 |ble of t|his type|
|00002d70| 2e 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00002d80| 20 7b 0d 09 55 49 6e 74 | 31 36 09 61 70 69 3b 09 | {..UInt|16.api;.|
|00002d90| 09 09 09 09 2f 2f 20 41 | 50 49 20 75 73 65 64 2e |....// A|PI used.|
|00002da0| 20 53 68 6f 75 6c 64 20 | 61 6c 77 61 79 73 20 63 | Should |always c|
|00002db0| 6f 6e 74 61 69 6e 20 56 | 50 5f 41 50 49 5f 56 45 |ontain V|P_API_VE|
|00002dc0| 52 53 49 4f 4e 0d 09 4f | 53 54 79 70 65 09 74 79 |RSION..O|SType.ty|
|00002dd0| 70 65 3b 09 09 09 09 09 | 2f 2f 20 50 6c 75 67 69 |pe;.....|// Plugi|
|00002de0| 6e 20 74 79 70 65 2e 20 | 53 68 6f 75 6c 64 20 62 |n type. |Should b|
|00002df0| 65 20 70 6c 75 67 56 69 | 73 75 61 6c 2e 0d 09 0d |e plugVi|sual....|
|00002e00| 09 4f 53 54 79 70 65 09 | 61 75 74 68 6f 72 49 44 |.OSType.|authorID|
|00002e10| 3b 09 09 09 09 2f 2f 20 | 41 75 74 68 6f 72 20 49 |;....// |Author I|
|00002e20| 44 20 73 68 6f 75 6c 64 | 20 62 65 20 72 65 67 69 |D should| be regi|
|00002e30| 73 74 65 72 65 64 20 77 | 69 74 68 20 40 73 6f 66 |stered w|ith @sof|
|00002e40| 74 20 74 6f 20 70 72 65 | 76 65 6e 74 0d 09 09 09 |t to pre|vent....|
|00002e50| 09 09 09 09 09 09 2f 2f | 20 20 69 6e 63 6f 6d 70 |......//| incomp|
|00002e60| 61 74 69 62 69 6c 69 74 | 69 65 73 2e 20 6d 61 69 |atibilit|ies. mai|
|00002e70| 6c 74 6f 3a 64 65 76 73 | 75 70 70 6f 72 74 40 61 |lto:devs|upport@a|
|00002e80| 74 2d 73 6f 66 74 2e 6e | 65 74 20 6f 72 0d 09 09 |t-soft.n|et or...|
|00002e90| 09 09 09 09 09 09 09 2f | 2f 20 20 6d 61 69 6c 74 |......./|/ mailt|
|00002ea0| 6f 3a 64 65 76 73 75 70 | 70 6f 72 74 40 4d 41 43 |o:devsup|port@MAC|
|00002eb0| 41 53 54 2e 63 6f 6d 0d | 09 4f 53 54 79 70 65 09 |AST.com.|.OSType.|
|00002ec0| 70 6c 75 67 69 6e 49 44 | 3b 09 09 09 09 2f 2f 20 |pluginID|;....// |
|00002ed0| 50 6c 75 67 69 6e 20 49 | 44 20 63 61 6e 20 62 65 |Plugin I|D can be|
|00002ee0| 20 61 6e 79 74 68 69 6e | 67 20 74 68 65 20 61 75 | anythin|g the au|
|00002ef0| 74 68 6f 72 20 77 69 73 | 68 65 73 2e 20 49 74 20 |thor wis|hes. It |
|00002f00| 69 73 0d 09 09 09 09 09 | 09 09 09 09 2f 2f 20 20 |is......|....// |
|00002f10| 75 73 65 64 20 77 69 74 | 68 20 61 75 74 68 6f 72 |used wit|h author|
|00002f20| 20 69 64 20 74 6f 20 73 | 74 6f 72 65 20 70 6c 75 | id to s|tore plu|
|00002f30| 67 69 6e 20 70 72 65 66 | 65 72 65 6e 63 65 73 20 |gin pref|erences |
|00002f40| 65 74 63 0d 09 0d 09 55 | 49 6e 74 33 32 09 66 6c |etc....U|Int32.fl|
|00002f50| 61 67 73 3b 09 09 09 09 | 09 2f 2f 20 50 6c 75 67 |ags;....|.// Plug|
|00002f60| 69 6e 20 66 6c 61 67 73 | 0d 09 0d 09 53 74 72 32 |in flags|....Str2|
|00002f70| 35 35 09 6e 61 6d 65 3b | 09 09 09 09 09 2f 2f 20 |55.name;|.....// |
|00002f80| 50 6c 75 67 69 6e 20 6e | 61 6d 65 20 28 64 69 73 |Plugin n|ame (dis|
|00002f90| 70 6c 61 79 65 64 20 69 | 6e 20 50 6c 75 67 69 6e |played i|n Plugin|
|00002fa0| 73 20 6d 65 6e 75 29 0d | 0d 09 76 69 73 49 6e 69 |s menu).|..visIni|
|00002fb0| 74 50 72 6f 63 50 74 72 | 09 09 09 69 6e 69 74 50 |tProcPtr|...initP|
|00002fc0| 72 6f 63 3b 0d 09 76 69 | 73 47 65 6e 65 72 69 63 |roc;..vi|sGeneric|
|00002fd0| 50 72 6f 63 50 74 72 09 | 09 74 65 72 6d 69 6e 61 |ProcPtr.|.termina|
|00002fe0| 74 65 50 72 6f 63 3b 0d | 09 76 69 73 47 65 6e 65 |teProc;.|.visGene|
|00002ff0| 72 69 63 50 72 6f 63 50 | 74 72 09 09 69 64 6c 65 |ricProcP|tr..idle|
|00003000| 50 72 6f 63 3b 09 09 2f | 2f 20 73 65 74 20 74 6f |Proc;../|/ set to|
|00003010| 20 6e 69 6c 20 69 66 20 | 79 6f 75 20 64 6f 6e 27 | nil if |you don'|
|00003020| 74 20 77 61 6e 74 20 74 | 6f 20 62 65 20 63 61 6c |t want t|o be cal|
|00003030| 6c 65 64 20 61 74 20 69 | 64 6c 65 20 74 69 6d 65 |led at i|dle time|
|00003040| 0d 09 76 69 73 47 65 6e | 65 72 69 63 50 72 6f 63 |..visGen|ericProc|
|00003050| 50 74 72 09 09 61 62 6f | 75 74 50 72 6f 63 3b 0d |Ptr..abo|utProc;.|
|00003060| 0d 09 76 69 73 47 65 6e | 65 72 69 63 50 72 6f 63 |..visGen|ericProc|
|00003070| 50 74 72 09 09 64 72 61 | 77 50 72 6f 63 3b 0d 09 |Ptr..dra|wProc;..|
|00003080| 76 69 73 43 6c 69 63 6b | 50 72 6f 63 50 74 72 09 |visClick|ProcPtr.|
|00003090| 09 09 63 6c 69 63 6b 50 | 72 6f 63 3b 0d 09 0d 09 |..clickP|roc;....|
|000030a0| 76 69 73 45 76 65 6e 74 | 50 72 6f 63 50 74 72 09 |visEvent|ProcPtr.|
|000030b0| 09 09 6b 65 79 44 6f 77 | 6e 50 72 6f 63 3b 09 2f |..keyDow|nProc;./|
|000030c0| 2f 20 73 65 74 20 74 6f | 20 6e 69 6c 20 69 66 20 |/ set to| nil if |
|000030d0| 79 6f 75 20 64 6f 6e 27 | 74 20 77 61 6e 74 20 6b |you don'|t want k|
|000030e0| 65 79 64 6f 77 6e 73 2e | 0d 09 76 69 73 45 76 65 |eydowns.|..visEve|
|000030f0| 6e 74 50 72 6f 63 50 74 | 72 09 09 09 6d 61 63 45 |ntProcPt|r...macE|
|00003100| 76 65 6e 74 50 72 6f 63 | 3b 09 2f 2f 20 73 65 74 |ventProc|;.// set|
|00003110| 20 74 6f 20 6e 69 6c 20 | 69 66 20 79 6f 75 20 64 | to nil |if you d|
|00003120| 6f 6e 27 74 20 77 61 6e | 74 20 74 6f 20 68 61 6e |on't wan|t to han|
|00003130| 64 6c 65 20 75 70 64 61 | 74 65 2f 63 6c 69 63 6b |dle upda|te/click|
|00003140| 20 65 76 65 6e 74 73 20 | 6d 61 6e 75 61 6c 6c 79 | events |manually|
|00003150| 2e 0d 09 0d 09 76 69 73 | 45 72 72 6f 72 50 72 6f |.....vis|ErrorPro|
|00003160| 63 50 74 72 09 09 09 65 | 72 72 6f 72 50 72 6f 63 |cPtr...e|rrorProc|
|00003170| 3b 0d 09 76 69 73 47 65 | 6e 65 72 69 63 50 72 6f |;..visGe|nericPro|
|00003180| 63 50 74 72 09 09 73 65 | 74 74 69 6e 67 73 50 72 |cPtr..se|ttingsPr|
|00003190| 6f 63 3b 09 2f 2f 20 73 | 65 74 20 74 6f 20 6e 69 |oc;.// s|et to ni|
|000031a0| 6c 20 69 66 20 79 6f 75 | 20 64 6f 6e 27 74 20 77 |l if you| don't w|
|000031b0| 61 6e 74 20 74 6f 20 62 | 65 20 64 69 73 70 6c 61 |ant to b|e displa|
|000031c0| 79 65 64 20 69 6e 20 73 | 65 74 74 69 6e 67 73 20 |yed in s|ettings |
|000031d0| 73 75 62 6d 65 6e 75 0d | 09 76 69 73 47 65 6e 65 |submenu.|.visGene|
|000031e0| 72 69 63 50 72 6f 63 50 | 74 72 09 09 74 72 61 63 |ricProcP|tr..trac|
|000031f0| 6b 42 65 67 69 6e 50 72 | 6f 63 3b 0d 09 76 69 73 |kBeginPr|oc;..vis|
|00003200| 47 65 6e 65 72 69 63 50 | 72 6f 63 50 74 72 09 09 |GenericP|rocPtr..|
|00003210| 74 72 61 63 6b 45 6e 64 | 50 72 6f 63 3b 0d 09 0d |trackEnd|Proc;...|
|00003220| 09 76 69 73 4c 69 73 74 | 65 6e 50 72 6f 63 50 74 |.visList|enProcPt|
|00003230| 72 09 09 6c 69 73 74 65 | 6e 50 72 6f 63 3b 09 09 |r..liste|nProc;..|
|00003240| 2f 2f 20 73 65 74 20 74 | 6f 20 6e 69 6c 20 69 66 |// set t|o nil if|
|00003250| 20 79 6f 75 20 64 6f 6e | 27 74 20 77 61 6e 74 20 | you don|'t want |
|00003260| 69 6e 74 65 72 6e 61 6c | 20 65 6e 67 69 6e 65 20 |internal| engine |
|00003270| 6d 65 73 73 61 67 65 73 | 0d 0d 09 2f 2f 20 53 65 |messages|...// Se|
|00003280| 74 20 74 68 65 73 65 20 | 74 6f 20 6e 69 6c 2e 20 |t these |to nil. |
|00003290| 54 68 65 79 20 61 72 65 | 20 72 65 73 65 72 76 65 |They are| reserve|
|000032a0| 64 20 66 6f 72 20 66 75 | 74 75 72 65 20 65 78 70 |d for fu|ture exp|
|000032b0| 61 6e 73 69 6f 6e 2e 0d | 09 76 69 73 47 65 6e 65 |ansion..|.visGene|
|000032c0| 72 69 63 50 72 6f 63 50 | 74 72 09 09 72 65 73 65 |ricProcP|tr..rese|
|000032d0| 72 76 65 64 50 72 6f 63 | 31 3b 0d 09 76 69 73 47 |rvedProc|1;..visG|
|000032e0| 65 6e 65 72 69 63 50 72 | 6f 63 50 74 72 09 09 72 |enericPr|ocPtr..r|
|000032f0| 65 73 65 72 76 65 64 50 | 72 6f 63 32 3b 0d 09 76 |eservedP|roc2;..v|
|00003300| 69 73 47 65 6e 65 72 69 | 63 50 72 6f 63 50 74 72 |isGeneri|cProcPtr|
|00003310| 09 09 72 65 73 65 72 76 | 65 64 50 72 6f 63 33 3b |..reserv|edProc3;|
|00003320| 0d 09 09 0d 09 2f 2f 20 | 53 70 65 63 69 61 6c 20 |.....// |Special |
|00003330| 41 50 49 73 20 28 53 65 | 74 20 74 6f 20 6e 69 6c |APIs (Se|t to nil|
|00003340| 2c 20 4d 41 43 41 53 54 | 20 77 69 6c 6c 20 73 65 |, MACAST| will se|
|00003350| 74 20 69 74 20 74 6f 20 | 74 68 65 20 72 69 67 68 |t it to |the righ|
|00003360| 74 20 76 61 6c 75 65 29 | 0d 09 56 50 43 61 6c 6c |t value)|..VPCall|
|00003370| 62 61 63 6b 73 50 74 72 | 09 09 09 09 6d 61 3b 0d |backsPtr|....ma;.|
|00003380| 7d 20 56 50 49 6e 66 6f | 42 6c 6f 63 6b 2c 20 2a |} VPInfo|Block, *|
|00003390| 56 50 49 6e 66 6f 50 74 | 72 3b 0d 23 70 72 61 67 |VPInfoPt|r;.#prag|
|000033a0| 6d 61 20 6f 70 74 69 6f | 6e 73 20 61 6c 69 67 6e |ma optio|ns align|
|000033b0| 3d 72 65 73 65 74 0d 0d | 23 69 66 64 65 66 20 5f |=reset..|#ifdef _|
|000033c0| 5f 63 70 6c 75 73 70 6c | 75 73 0d 7d 0d 23 65 6e |_cpluspl|us.}.#en|
|000033d0| 64 69 66 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |dif.....|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 02 | 00 04 00 9b 00 ab 02 dd |........|........|
|00003530| 03 c3 00 9b 00 ab 02 dd | 03 c3 b4 05 34 f6 00 00 |........|....4...|
|00003540| 32 c8 00 00 32 c8 00 00 | 2c cf 01 00 00 00 00 04 |2...2...|,.......|
|00003550| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003560| 00 00 00 46 08 29 4f 00 | 01 76 00 00 00 1c 00 46 |...F.)O.|.v.....F|
|00003570| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003580| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003590| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+